Merge pull request #1263 from abidrahmank:pyCLAHE_24
[profile/ivi/opencv.git] / platforms / ios / cmake / Toolchains / Toolchain-iPhoneOS_Xcode.cmake
1 message (STATUS "Setting up iPhoneOS toolchain")
2 set (IPHONEOS TRUE)
3
4 # Standard settings
5 set (CMAKE_SYSTEM_NAME iOS)
6 # Include extra modules for the iOS platform files
7 set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/platforms/ios/cmake/Modules")
8
9 # Force the compilers to clang for iOS
10 include (CMakeForceCompiler)
11 #CMAKE_FORCE_C_COMPILER (clang GNU)
12 #CMAKE_FORCE_CXX_COMPILER (clang++ GNU)
13
14 set (CMAKE_C_SIZEOF_DATA_PTR 4)
15 set (CMAKE_C_HAS_ISYSROOT 1)
16 set (CMAKE_C_COMPILER_ABI ELF)
17 set (CMAKE_CXX_SIZEOF_DATA_PTR 4)
18 set (CMAKE_CXX_HAS_ISYSROOT 1)
19 set (CMAKE_CXX_COMPILER_ABI ELF)
20
21 # Skip the platform compiler checks for cross compiling
22 set (CMAKE_CXX_COMPILER_WORKS TRUE)
23 set (CMAKE_C_COMPILER_WORKS TRUE)
24
25 # Search for programs in the build host directories
26 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
27 #   for libraries and headers in the target directories
28 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
29 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
30
31 message (STATUS "iPhoneOS toolchain loaded")