mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 18:06:57 +02:00
simplify cmake call for android build
This commit is contained in:
parent
f58462845a
commit
2b0796eb7d
2 changed files with 6 additions and 2 deletions
|
@ -138,5 +138,4 @@ The following must be set in your environment:
|
||||||
|
|
||||||
The following must be passed to CMake when it is run:
|
The following must be passed to CMake when it is run:
|
||||||
|
|
||||||
* CMAKE_TOOLCHAIN_FILE - full path to the android.toolchain.cmake file that is included in this repository (/cmake/android/android.toolchain.cmake)
|
* USE_ANDROID_TOOLCHAIN - set to true to build for Android
|
||||||
* ANDROID_NATIVE_API_LEVEL - the API level you want to use (this should be 19 for GearVR)
|
|
|
@ -1,5 +1,10 @@
|
||||||
cmake_minimum_required(VERSION 2.8.12.2)
|
cmake_minimum_required(VERSION 2.8.12.2)
|
||||||
|
|
||||||
|
if (USE_ANDROID_TOOLCHAIN)
|
||||||
|
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/android/android.toolchain.cmake")
|
||||||
|
set(ANDROID_NATIVE_API_LEVEL 19)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
cmake_policy(SET CMP0020 NEW)
|
cmake_policy(SET CMP0020 NEW)
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
|
|
Loading…
Reference in a new issue