2014-03-20 23:21:28 +00:00
|
|
|
INCLUDE(CMakeForceCompiler)
|
|
|
|
|
|
|
|
SET (CMAKE_CROSSCOMPILING TRUE)
|
|
|
|
SET (CMAKE_SYSTEM_NAME "Darwin")
|
2014-04-14 14:04:36 +00:00
|
|
|
SET (CMAKE_SYSTEM_PROCESSOR "x86_64")
|
2014-03-20 23:21:28 +00:00
|
|
|
|
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")
|
2014-03-21 00:15:09 +00:00
|
|
|
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator${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)
|