CMakeLists.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 Stars.Static STATIC
  10. NAMESPACE Gem
  11. FILES_CMAKE
  12. stars_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PUBLIC
  15. Include
  16. PRIVATE
  17. Source
  18. BUILD_DEPENDENCIES
  19. PUBLIC
  20. AZ::AzCore
  21. AZ::AzFramework
  22. Gem::Atom_RHI.Public
  23. Gem::Atom_RPI.Public
  24. Gem::Atom_Utils.Static
  25. )
  26. ly_add_target(
  27. NAME Stars.API HEADERONLY
  28. NAMESPACE Gem
  29. FILES_CMAKE
  30. stars_headers_files.cmake
  31. INCLUDE_DIRECTORIES
  32. INTERFACE
  33. include
  34. )
  35. ly_add_target(
  36. NAME Stars ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  37. NAMESPACE Gem
  38. FILES_CMAKE
  39. stars_shared_files.cmake
  40. INCLUDE_DIRECTORIES
  41. PUBLIC
  42. Include
  43. PRIVATE
  44. Source
  45. BUILD_DEPENDENCIES
  46. PRIVATE
  47. Gem::Stars.Static
  48. )
  49. ly_create_alias(NAME Stars.Clients NAMESPACE Gem TARGETS Gem::Stars)
  50. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  51. ly_add_target(
  52. NAME Stars.Editor.Static STATIC
  53. NAMESPACE Gem
  54. FILES_CMAKE
  55. stars_editor_files.cmake
  56. INCLUDE_DIRECTORIES
  57. PRIVATE
  58. Source
  59. PUBLIC
  60. Include
  61. BUILD_DEPENDENCIES
  62. PUBLIC
  63. AZ::AzToolsFramework
  64. Gem::Stars.Static
  65. Gem::Atom_Feature_Common.Static
  66. Gem::Atom_Feature_Common.Public
  67. )
  68. ly_add_target(
  69. NAME Stars.Editor GEM_MODULE
  70. NAMESPACE Gem
  71. AUTOMOC
  72. FILES_CMAKE
  73. stars_editor_shared_files.cmake
  74. INCLUDE_DIRECTORIES
  75. PRIVATE
  76. Source
  77. PUBLIC
  78. Include
  79. BUILD_DEPENDENCIES
  80. PUBLIC
  81. Gem::Stars.Editor.Static
  82. )
  83. ly_create_alias(NAME Stars.Tools NAMESPACE Gem TARGETS Gem::Stars.Editor)
  84. # A Builders alias must exist for Gem Assets to be seen by the Asset Processor.
  85. # A Builders alias target must exist for the Prefab .spawnable builder to be able to
  86. # load the .dll so the builder can serialize StarComponents to .spawnable files
  87. # which are needed in the game launcher.
  88. ly_create_alias(NAME Stars.Builders NAMESPACE Gem TARGETS Gem::Stars.Editor)
  89. endif()