3
0

CMakeLists.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. # The DebugDraw.API target declares the common interface that users of this gem should depend on in their targets to avoid linking.
  9. ly_add_target(
  10. NAME DebugDraw.API INTERFACE
  11. NAMESPACE Gem
  12. FILES_CMAKE
  13. debugdraw_api_files.cmake
  14. INCLUDE_DIRECTORIES
  15. INTERFACE
  16. Include
  17. BUILD_DEPENDENCIES
  18. INTERFACE
  19. AZ::AzCore
  20. )
  21. ly_add_target(
  22. NAME DebugDraw.Static STATIC
  23. NAMESPACE Gem
  24. FILES_CMAKE
  25. debugdraw_files.cmake
  26. INCLUDE_DIRECTORIES
  27. PRIVATE
  28. Source
  29. PUBLIC
  30. Include
  31. BUILD_DEPENDENCIES
  32. PUBLIC
  33. AZ::AtomCore
  34. Gem::Atom_RPI.Public
  35. Gem::Atom_Bootstrap.Headers
  36. Legacy::CryCommon
  37. )
  38. ly_add_target(
  39. NAME DebugDraw ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  40. NAMESPACE Gem
  41. FILES_CMAKE
  42. debugdraw_shared_files.cmake
  43. INCLUDE_DIRECTORIES
  44. PRIVATE
  45. Source
  46. PUBLIC
  47. Include
  48. BUILD_DEPENDENCIES
  49. PRIVATE
  50. Gem::DebugDraw.Static
  51. )
  52. # servers do not need debug draw components, only clients
  53. ly_create_alias(NAME DebugDraw.Clients NAMESPACE Gem TARGETS DebugDraw)
  54. ly_create_alias(NAME DebugDraw.Unified NAMESPACE Gem TARGETS DebugDraw)
  55. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  56. ly_add_target(
  57. NAME DebugDraw.Editor GEM_MODULE
  58. NAMESPACE Gem
  59. FILES_CMAKE
  60. debugdraw_editor_files.cmake
  61. INCLUDE_DIRECTORIES
  62. PRIVATE
  63. Source
  64. PUBLIC
  65. Include
  66. COMPILE_DEFINITIONS
  67. PRIVATE
  68. DEBUGDRAW_GEM_EDITOR=1
  69. BUILD_DEPENDENCIES
  70. PRIVATE
  71. AZ::AtomCore
  72. Gem::Atom_RPI.Public
  73. Gem::Atom_Bootstrap.Headers
  74. Legacy::CryCommon
  75. AZ::AzToolsFramework
  76. )
  77. # builders and tools use DebugDraw.Editor
  78. ly_create_alias(NAME DebugDraw.Builders NAMESPACE Gem TARGETS DebugDraw.Editor)
  79. ly_create_alias(NAME DebugDraw.Tools NAMESPACE Gem TARGETS DebugDraw.Editor)
  80. endif()