CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. FILES_CMAKE
  13. atomviewportdisplayicons_files.cmake
  14. INCLUDE_DIRECTORIES
  15. PRIVATE
  16. Source
  17. BUILD_DEPENDENCIES
  18. PRIVATE
  19. AZ::AzCore
  20. AZ::AzFramework
  21. AZ::AzToolsFramework
  22. AZ::AtomCore
  23. 3rdParty::Qt::Core
  24. 3rdParty::Qt::Gui
  25. 3rdParty::Qt::Svg
  26. Gem::Atom_RHI.Reflect
  27. Gem::Atom_RPI.Public
  28. Gem::Atom_Bootstrap.Headers
  29. Gem::Atom_AtomBridge.Static
  30. )
  31. # Inject the gem name into the Module source file
  32. ly_add_source_properties(
  33. SOURCES
  34. Source/Module.cpp
  35. PROPERTY COMPILE_DEFINITIONS
  36. VALUES
  37. O3DE_GEM_NAME=${gem_name}
  38. O3DE_GEM_VERSION=${gem_version})
  39. endif()