CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. barrierinput_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. Source
  16. PUBLIC
  17. Include
  18. BUILD_DEPENDENCIES
  19. PUBLIC
  20. AZ::AzCore
  21. AZ::AzFramework
  22. AZ::AtomCore
  23. Gem::Atom_RPI.Public
  24. RUNTIME_DEPENDENCIES
  25. Gem::Atom_RPI.Private
  26. )
  27. ly_add_target(
  28. NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  29. NAMESPACE Gem
  30. FILES_CMAKE
  31. barrierinput_shared_files.cmake
  32. INCLUDE_DIRECTORIES
  33. PRIVATE
  34. Source
  35. PUBLIC
  36. Include
  37. BUILD_DEPENDENCIES
  38. PRIVATE
  39. Gem::${gem_name}.Static
  40. )
  41. # Inject the gem name into the Module source file
  42. ly_add_source_properties(
  43. SOURCES
  44. Source/BarrierInputModule.cpp
  45. PROPERTY COMPILE_DEFINITIONS
  46. VALUES
  47. O3DE_GEM_NAME=${gem_name}
  48. O3DE_GEM_VERSION=${gem_version})
  49. # Barrier Input is only needed for the client:
  50. ly_create_alias(NAME ${gem_name}.Clients NAMESPACE Gem TARGETS Gem::${gem_name})