CMake: Move -DANDROID in the toolchain script, to ease reuse of this file
[freeglut] / android_toolchain.cmake
1 # CMake toolchain file, cf. README.android
2 SET(CMAKE_SYSTEM_NAME Linux)  # Tell CMake we're cross-compiling
3 include(CMakeForceCompiler)
4 # Prefix detection only works with compiler id "GNU"
5 CMAKE_FORCE_C_COMPILER(arm-linux-androideabi-gcc GNU)
6 # '-DANDROID' is the Android build system convention
7 ADD_DEFINITIONS(-DANDROID)
8 SET(ANDROID TRUE)