mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 21:49:25 +08:00
9 lines
390 B
CMake
9 lines
390 B
CMake
if (NOT DEFINED NDK_ROOT)
|
|
message(FATAL_ERROR "NDK_ROOT is not defined. Please set it to the root directory of your Android NDK.")
|
|
endif ()
|
|
message(STATUS "Using Android NDK: ${NDK_ROOT}")
|
|
if (NOT DEFINED ANDROID_ABI)
|
|
message("ANDROID_ABI is not defined. Defaulting to x86")
|
|
set(ANDROID_ABI x86)
|
|
endif ()
|
|
set(CMAKE_TOOLCHAIN_FILE ${NDK_ROOT}/build/cmake/android.toolchain.cmake) |