2014-03-20 23:21:28 +00:00
|
|
|
INCLUDE(CMakeForceCompiler)
|
|
|
|
|
|
|
|
SET (CMAKE_CROSSCOMPILING TRUE)
|
|
|
|
SET (CMAKE_SYSTEM_NAME "Darwin")
|
|
|
|
SET (CMAKE_SYSTEM_PROCESSOR "armv7")
|
|
|
|
|
2014-04-14 14:04:36 +00:00
|
|
|
SET (SDKVER "7.1")
|
2014-03-20 23:21:28 +00:00
|
|
|
SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
|
|
|
|
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVER}.sdk")
|
2014-04-14 14:04:36 +00:00
|
|
|
SET (CC "${DEVROOT}/usr/bin/clang")
|
2014-03-20 23:21:28 +00:00
|
|
|
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
|
|
|
|
|
|
|
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
|
|
|
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
|
|
|
|
|
|
|
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
|
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|