nvcloth_stub.cmake 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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}.Stub ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  10. NAMESPACE Gem
  11. FILES_CMAKE
  12. nvcloth_stub_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. Source
  16. BUILD_DEPENDENCIES
  17. PRIVATE
  18. AZ::AzCore
  19. )
  20. add_library(Gem::${gem_name} ALIAS ${gem_name}.Stub)
  21. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  22. ly_add_target(
  23. NAME ${gem_name}.Editor.Stub GEM_MODULE
  24. NAMESPACE Gem
  25. FILES_CMAKE
  26. nvcloth_stub_files.cmake
  27. INCLUDE_DIRECTORIES
  28. PRIVATE
  29. Source
  30. COMPILE_DEFINITIONS
  31. PRIVATE
  32. NVCLOTH_EDITOR
  33. BUILD_DEPENDENCIES
  34. PRIVATE
  35. AZ::AzCore
  36. )
  37. add_library(Gem::${gem_name}.Editor ALIAS ${gem_name}.Editor.Stub)
  38. # Inject the gem name into the Module source file
  39. ly_add_source_properties(
  40. SOURCES
  41. Source/ModuleUnsupported.cpp
  42. PROPERTY COMPILE_DEFINITIONS
  43. VALUES
  44. O3DE_GEM_NAME=${gem_name}
  45. O3DE_GEM_VERSION=${gem_version})
  46. endif()