CMakeLists.txt 993 B

123456789101112131415161718192021222324
  1. # {BEGIN_LICENSE}
  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. # {END_LICENSE}
  8. o3de_gem_setup("${Name}")
  9. # This indicates to the Builders applications(AssetProcessor, AssetBuilder, AssetBundler)
  10. # that the gem should be added to the "cmake_dependencies.<project>.assetbuilder.setreg"
  11. # which is generated when cmake configure occurs.
  12. # Also tooling applications such as the Editor needs the CMake alias
  13. # to see the gem as active
  14. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  15. ly_create_alias(NAME ${gem_name}.Builders NAMESPACE Gem)
  16. ly_create_alias(NAME ${gem_name}.Tools NAMESPACE Gem)
  17. # Add in CMake dependencies for each gem dependency listed in this gem's gem.json file
  18. # for the Tools and Builders gem variants
  19. o3de_add_variant_dependencies_for_gem_dependencies(GEM_NAME ${gem_name} VARIANTS Tools Builders)
  20. endif()