CMakeLists.txt 1.3 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. ly_add_target(
  9. NAME ${gem_name}.Public HEADERONLY
  10. NAMESPACE Gem
  11. FILES_CMAKE
  12. atomimguitools_public_files.cmake
  13. INCLUDE_DIRECTORIES
  14. INTERFACE
  15. Include
  16. )
  17. ly_add_target(
  18. NAME ${gem_name}.Static STATIC
  19. NAMESPACE Gem
  20. FILES_CMAKE
  21. atomimguitools_files.cmake
  22. INCLUDE_DIRECTORIES
  23. PRIVATE
  24. Source
  25. BUILD_DEPENDENCIES
  26. PUBLIC
  27. AZ::AzCore
  28. Gem::ImguiAtom.Static
  29. Gem::Atom_Utils.Static
  30. Gem::${gem_name}.Public
  31. )
  32. ly_add_target(
  33. NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  34. NAMESPACE Gem
  35. FILES_CMAKE
  36. atomimguitools_shared_files.cmake
  37. INCLUDE_DIRECTORIES
  38. PRIVATE
  39. Source
  40. BUILD_DEPENDENCIES
  41. PRIVATE
  42. Gem::${gem_name}.Static
  43. )
  44. # Inject the gem name into the Module source file
  45. ly_add_source_properties(
  46. SOURCES
  47. Source/AtomImGuiToolsModule.cpp
  48. PROPERTY COMPILE_DEFINITIONS
  49. VALUES
  50. O3DE_GEM_NAME=${gem_name}
  51. O3DE_GEM_VERSION=${gem_version})