CMakeLists.txt 749 B

12345678910111213141516171819202122
  1. # Query the gem name from the gem.json file if possible
  2. # otherwise fallback to using MPSGameLift
  3. o3de_find_ancestor_gem_root(gem_path gem_name "${CMAKE_CURRENT_SOURCE_DIR}")
  4. if (NOT gem_name)
  5. set(gem_name "MPSGameLift")
  6. endif()
  7. # Fallback to using the current source CMakeLists.txt directory as the gem root path
  8. if (NOT gem_path)
  9. set(gem_path ${CMAKE_CURRENT_SOURCE_DIR})
  10. endif()
  11. set(gem_json ${gem_path}/gem.json)
  12. o3de_restricted_path(${gem_json} gem_restricted_path gem_parent_relative_path)
  13. o3de_pal_dir(pal_dir ${CMAKE_CURRENT_SOURCE_DIR}/Platform/${PAL_PLATFORM_NAME} "${gem_restricted_path}" "${gem_path}" "${gem_parent_relative_path}")
  14. ly_add_external_target_path(${CMAKE_CURRENT_SOURCE_DIR}/3rdParty)
  15. add_subdirectory(Code)