CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  9. ly_add_target(
  10. NAME ${gem_name}.Editor.Static STATIC
  11. NAMESPACE Gem
  12. FILES_CMAKE
  13. editormodefeedback_editor_files.cmake
  14. INCLUDE_DIRECTORIES
  15. PRIVATE
  16. Source
  17. PUBLIC
  18. Include
  19. BUILD_DEPENDENCIES
  20. PUBLIC
  21. AZ::AzCore
  22. AZ::AzToolsFramework
  23. Gem::Atom_RPI.Public
  24. Gem::Atom_Feature_Common.Public
  25. Gem::CommonFeaturesAtom.Static
  26. )
  27. ly_add_target(
  28. NAME ${gem_name}.Editor GEM_MODULE
  29. NAMESPACE Gem
  30. AUTORCC
  31. FILES_CMAKE
  32. editormodefeedback_editor_shared_files.cmake
  33. INCLUDE_DIRECTORIES
  34. PRIVATE
  35. Source
  36. PUBLIC
  37. Include
  38. BUILD_DEPENDENCIES
  39. PRIVATE
  40. Gem::${gem_name}.Editor.Static
  41. )
  42. # Inject the gem name into the Module source file
  43. ly_add_source_properties(
  44. SOURCES
  45. Source/${gem_name}Module.cpp
  46. PROPERTY COMPILE_DEFINITIONS
  47. VALUES
  48. O3DE_GEM_NAME=${gem_name}
  49. O3DE_GEM_VERSION=${gem_version})
  50. ly_create_alias(NAME ${gem_name}.Tools NAMESPACE Gem TARGETS Gem::${gem_name}.Editor)
  51. ly_create_alias(NAME ${gem_name}.Builders NAMESPACE Gem TARGETS Gem::${gem_name}.Editor)
  52. endif()