CMakeLists.txt 841 B

123456789101112131415161718192021
  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. set(gem_path ${CMAKE_CURRENT_LIST_DIR})
  9. set(gem_json ${gem_path}/gem.json)
  10. o3de_restricted_path(${gem_json} gem_restricted_path gem_parent_relative_path)
  11. o3de_pal_dir(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} "${gem_restricted_path}" "${gem_path}" "${gem_parent_relative_path}")
  12. # Now that we have the platform abstraction layer (PAL) folder for this folder, thats where we will find the
  13. # project cmake for this platform.
  14. include(${pal_dir}/${PAL_PLATFORM_NAME_LOWERCASE}_gem.cmake)
  15. ly_add_external_target_path(${CMAKE_CURRENT_LIST_DIR}/3rdParty)
  16. add_subdirectory(Code)