CMakeLists.txt 1.4 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}.Static STATIC
  10. NAMESPACE Gem
  11. FILES_CMAKE
  12. ${gem_name}_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. .
  16. Source
  17. PUBLIC
  18. Include
  19. BUILD_DEPENDENCIES
  20. PUBLIC
  21. AZ::AzCore
  22. Legacy::CryCommon
  23. )
  24. ly_add_target(
  25. NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  26. NAMESPACE Gem
  27. FILES_CMAKE
  28. certificatemanager_shared_files.cmake
  29. INCLUDE_DIRECTORIES
  30. PRIVATE
  31. .
  32. Source
  33. PUBLIC
  34. Include
  35. BUILD_DEPENDENCIES
  36. PRIVATE
  37. Gem::${gem_name}.Static
  38. )
  39. # Inject the gem name into the Module source file
  40. ly_add_source_properties(
  41. SOURCES
  42. Source/CertificateManagerGem.cpp
  43. PROPERTY COMPILE_DEFINITIONS
  44. VALUES
  45. O3DE_GEM_NAME=${gem_name}
  46. O3DE_GEM_VERSION=${gem_version})
  47. # we'll load the above "Gem::${gem_name}" module in Clients and Servers
  48. ly_create_alias(NAME ${gem_name}.Clients NAMESPACE Gem TARGETS Gem::${gem_name})
  49. ly_create_alias(NAME ${gem_name}.Servers NAMESPACE Gem TARGETS Gem::${gem_name})
  50. ly_create_alias(NAME ${gem_name}.Unified NAMESPACE Gem TARGETS Gem::${gem_name})