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")
|
2018-03-19 13:49:16 +00:00
|
|
|
SET (IOS TRUE)
|
2014-03-20 23:21:28 +00:00
|
|
|
|
2018-03-20 11:46:03 +00:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
|
|
endif()
|
|
|
|
|
2018-03-20 12:45:54 +00:00
|
|
|
SET (CC "${DEVROOT}/usr/bin/clang")
|
|
|
|
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
|
|
|
|
|
|
|
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
|
|
|
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
|
|
|
|
2018-03-20 11:46:03 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
|
|
|
|
2018-03-19 13:49:16 +00:00
|
|
|
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
2014-03-20 23:21:28 +00:00
|
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|