CMakeLists.txt 966 B

1234567891011121314151617181920
  1. # Copyright (c) Contributors to the Open 3D Engine Project.
  2. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 OR MIT
  5. o3de_gem_setup("ROS2SampleRobots")
  6. # This indicates to the Builders applications(AssetProcessor, AssetBuilder, AssetBundler)
  7. # that the gem should be added to the "cmake_dependencies.<project>.assetbuilder.setreg"
  8. # which is generated when cmake configure occurs.
  9. # Also tooling applications such as the Editor needs the CMake alias
  10. # to see the gem as active
  11. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  12. ly_create_alias(NAME ${gem_name}.Builders NAMESPACE Gem)
  13. ly_create_alias(NAME ${gem_name}.Tools NAMESPACE Gem)
  14. # Add in CMake dependencies for each gem dependency listed in this gem's gem.json file
  15. # for the Tools and Builders gem variants
  16. o3de_add_variant_dependencies_for_gem_dependencies(GEM_NAME ${gem_name} VARIANTS Tools Builders)
  17. endif()