CMakeLists.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. cameraframework_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. Source
  16. PUBLIC
  17. Include
  18. BUILD_DEPENDENCIES
  19. PUBLIC
  20. Legacy::CryCommon
  21. )
  22. ly_add_target(
  23. NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  24. NAMESPACE Gem
  25. FILES_CMAKE
  26. cameraframework_shared_files.cmake
  27. INCLUDE_DIRECTORIES
  28. PRIVATE
  29. Source
  30. PUBLIC
  31. Include
  32. BUILD_DEPENDENCIES
  33. PRIVATE
  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/CameraFrameworkGem.cpp
  40. PROPERTY COMPILE_DEFINITIONS
  41. VALUES
  42. O3DE_GEM_NAME=${gem_name}
  43. O3DE_GEM_VERSION=${gem_version})
  44. # Every kind of application uses the above target module.
  45. ly_create_alias(NAME ${gem_name}.Clients NAMESPACE Gem TARGETS Gem::${gem_name})
  46. ly_create_alias(NAME ${gem_name}.Servers NAMESPACE Gem TARGETS Gem::${gem_name})
  47. ly_create_alias(NAME ${gem_name}.Unified NAMESPACE Gem TARGETS Gem::${gem_name})
  48. ly_create_alias(NAME ${gem_name}.Tools NAMESPACE Gem TARGETS Gem::${gem_name})
  49. ly_create_alias(NAME ${gem_name}.Builders NAMESPACE Gem TARGETS Gem::${gem_name})