CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. messagepopup_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. Source
  16. PUBLIC
  17. Include
  18. BUILD_DEPENDENCIES
  19. PUBLIC
  20. Legacy::CryCommon
  21. Gem::LyShine.Clients.API
  22. )
  23. ly_add_target(
  24. NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  25. NAMESPACE Gem
  26. FILES_CMAKE
  27. messagepopup_shared_files.cmake
  28. INCLUDE_DIRECTORIES
  29. PRIVATE
  30. Source
  31. PUBLIC
  32. Include
  33. BUILD_DEPENDENCIES
  34. PRIVATE
  35. Gem::${gem_name}.Static
  36. )
  37. # Inject the gem name into the Module source file
  38. ly_add_source_properties(
  39. SOURCES
  40. Source/MessagePopupModule.cpp
  41. PROPERTY COMPILE_DEFINITIONS
  42. VALUES
  43. O3DE_GEM_NAME=${gem_name}
  44. O3DE_GEM_VERSION=${gem_version})
  45. # ${gem_name} is used only in client applications
  46. ly_create_alias(NAME ${gem_name}.Clients NAMESPACE Gem TARGETS Gem::${gem_name})
  47. ly_create_alias(NAME ${gem_name}.Builders NAMESPACE Gem TARGETS Gem::UiBasics.Builders)