CMakeLists.txt 778 B

12345678910111213141516171819202122
  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. # Query the gem name from the gem.json file if possible
  9. # otherwise fallback to using ${Name}
  10. o3de_find_ancestor_gem_root(gem_root_path gem_name "${CMAKE_CURRENT_SOURCE_DIR}")
  11. if (NOT gem_name)
  12. set(gem_name "MPSGems")
  13. endif()
  14. # This will export the path to the directory containing the gem.json
  15. # to the "SourcePaths" entry within the "cmake_dependencies.<project>.assetbuilder.setreg"
  16. # which is generated when cmake is run
  17. # This path is the gem root directory
  18. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  19. ly_create_alias(NAME MPSGems.Builders NAMESPACE Gem)
  20. endif()