/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/BuildSystem/CMake/toolchain-steamrt.cmake
18 строк
811 B
Ingrater
Add support for cross-compiling for the SteamRT Sniper (#1391)
25 сен 2024, 14:29
25 сен 2024, 14:29
03e2889
Код
Авторство
О чём код?
set(CMAKE_SYSTEM_NAME Linux) message("sdk :'$ENV{EZ_STEAMRT_SDK_ROOT}'") if(NOT IS_DIRECTORY "$ENV{EZ_STEAMRT_SDK_ROOT}") message(FATAL_ERROR "EZ_STEAMRT_SDK_ROOT environment variable not set or the directory it points to is not valid. Please define it to point to the steamrt sniper SDK root.") endif() # Tell cmake where the sdk root directory is set(CMAKE_SYSROOT $ENV{EZ_STEAMRT_SDK_ROOT}) set(CMAKE_FIND_ROOT_PATH $ENV{EZ_STEAMRT_SDK_ROOT}) # Configure cmake to only look inside the steamrt sdk, and not the host system. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) # Add a output directory platform postfix to differentiate with a regular linux build (editor) set(EZ_OUTPUT_DIRECTORY_PLATFORM_POSTFIX "Steamrt")