CMakeLists.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. ly_add_target(
  9. NAME ${gem_name}.Static STATIC
  10. NAMESPACE Gem
  11. FILES_CMAKE
  12. emotionfx_atom_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. Source
  16. BUILD_DEPENDENCIES
  17. PRIVATE
  18. AZ::AzCore
  19. AZ::AtomCore
  20. Gem::EMotionFXStaticLib
  21. Gem::Atom_Utils.Static
  22. Gem::Atom_Feature_Common
  23. Gem::Atom_Feature_Common.Public
  24. Gem::Atom_RPI.Public
  25. Gem::Atom_RHI.Reflect
  26. Gem::CommonFeaturesAtom.Public
  27. )
  28. ly_add_target(
  29. NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  30. NAMESPACE Gem
  31. FILES_CMAKE
  32. emotionfxatom_shared_files.cmake
  33. INCLUDE_DIRECTORIES
  34. PRIVATE
  35. Source
  36. BUILD_DEPENDENCIES
  37. PRIVATE
  38. AZ::AzCore
  39. Gem::${gem_name}.Static
  40. RUNTIME_DEPENDENCIES
  41. Gem::EMotionFX
  42. )
  43. # Inject the gem name into the Module source file
  44. ly_add_source_properties(
  45. SOURCES
  46. Source/ActorModule.cpp
  47. PROPERTY COMPILE_DEFINITIONS
  48. VALUES
  49. O3DE_GEM_NAME=${gem_name}
  50. O3DE_GEM_VERSION=${gem_version})
  51. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  52. ly_add_target(
  53. NAME ${gem_name}.Editor GEM_MODULE
  54. NAMESPACE Gem
  55. AUTORCC
  56. FILES_CMAKE
  57. emotionfx_atom_editor_files.cmake
  58. INCLUDE_DIRECTORIES
  59. PRIVATE
  60. Editor
  61. Source
  62. Tools
  63. BUILD_DEPENDENCIES
  64. PRIVATE
  65. AZ::AzCore
  66. AZ::AzFramework
  67. Gem::${gem_name}.Static
  68. Gem::EMotionFX.Editor.Static
  69. Gem::AtomToolsFramework.Static
  70. Gem::AtomToolsFramework.Editor
  71. Gem::Atom_Component_DebugCamera.Static
  72. Gem::Atom_Feature_Common.Public
  73. Gem::CommonFeaturesAtom.Static
  74. RUNTIME_DEPENDENCIES
  75. Gem::EMotionFX.Editor
  76. COMPILE_DEFINITIONS
  77. PUBLIC
  78. EMOTIONFXATOM_EDITOR
  79. )
  80. endif()