CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. imguiatom_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. Source
  16. BUILD_DEPENDENCIES
  17. PUBLIC
  18. AZ::AtomCore
  19. AZ::AzCore
  20. Gem::ImGui.Static
  21. Gem::Atom_Feature_Common.Public
  22. )
  23. ly_add_target(
  24. NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  25. NAMESPACE Gem
  26. FILES_CMAKE
  27. imguiatom_shared_files.cmake
  28. INCLUDE_DIRECTORIES
  29. PRIVATE
  30. Source
  31. BUILD_DEPENDENCIES
  32. PRIVATE
  33. AZ::AzFramework
  34. Gem::${gem_name}.Static
  35. )
  36. # Inject the gem name into the Module source file
  37. ly_add_source_properties(
  38. SOURCES
  39. Source/ImguiAtomModule.cpp
  40. PROPERTY COMPILE_DEFINITIONS
  41. VALUES
  42. O3DE_GEM_NAME=${gem_name}
  43. O3DE_GEM_VERSION=${gem_version})