1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- cmake_minimum_required(VERSION 3.22)
- if(${CMAKE_ARGC} LESS 4)
- message(FATAL_ERROR "Missing required engine root argument.")
- endif()
- if(${CMAKE_ARGC} LESS 5)
- message(FATAL_ERROR "Missing required platform name argument.")
- endif()
- macro(ly_set name)
- set(${name} "${ARGN}")
- if(LY_PARENT_SCOPE)
- set(${name} "${ARGN}" PARENT_SCOPE)
- endif()
- endmacro()
- macro("ly_associate_package")
- endmacro()
- set(ENGINE_ROOT ${CMAKE_ARGV3})
- set(PAL_PLATFORM_NAME ${CMAKE_ARGV4})
- if(${CMAKE_ARGC} GREATER 5)
- set(PLATFORM_ARCH "_${CMAKE_ARGV5}")
- endif()
- string(TOLOWER ${PAL_PLATFORM_NAME} PAL_PLATFORM_NAME_LOWERCASE)
- include(${ENGINE_ROOT}/cmake/3rdParty/Platform/${PAL_PLATFORM_NAME}/Python_${PAL_PLATFORM_NAME_LOWERCASE}${PLATFORM_ARCH}.cmake)
- execute_process(COMMAND ${CMAKE_COMMAND} -E echo ${LY_PYTHON_PACKAGE_HASH})
|