CMakeLists.txt 950 B

1234567891011121314151617181920212223242526272829303132333435
  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. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  9. ly_add_target(
  10. NAME ${gem_name}.Editor ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  11. NAMESPACE Gem
  12. AUTORCC
  13. FILES_CMAKE
  14. atomrenderoptions_files.cmake
  15. INCLUDE_DIRECTORIES
  16. PRIVATE
  17. Source
  18. BUILD_DEPENDENCIES
  19. PRIVATE
  20. AZ::AzCore
  21. AZ::AzToolsFramework
  22. Gem::Atom_RPI.Public
  23. )
  24. # Inject the gem name into the Module source file
  25. ly_add_source_properties(
  26. SOURCES
  27. Source/Module.cpp
  28. PROPERTY COMPILE_DEFINITIONS
  29. VALUES
  30. O3DE_GEM_NAME=${gem_name}
  31. O3DE_GEM_VERSION=${gem_version})
  32. endif()