CMakeLists.txt 633 B

1234567891011121314151617181920
  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(gempath gem_name "${CMAKE_CURRENT_SOURCE_DIR}")
  11. if (NOT gem_name)
  12. set(gem_name "AzQtComponentsForPython")
  13. endif()
  14. set(gem_path ${CMAKE_CURRENT_LIST_DIR})
  15. set(gem_json ${gem_path}/gem.json)
  16. o3de_restricted_path(${gem_json} gem_restricted_path gem_parent_relative_path)
  17. add_subdirectory(Code)