mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
13 years ago
|
message (STATUS "Setting up iPhoneSimulator toolchain")
|
||
13 years ago
|
set (IPHONESIMULATOR TRUE)
|
||
|
|
||
|
# Standard settings
|
||
|
set (CMAKE_SYSTEM_NAME iOS)
|
||
|
# Include extra modules for the iOS platform files
|
||
12 years ago
|
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/platforms/ios/cmake/Modules")
|
||
13 years ago
|
|
||
12 years ago
|
# Force the compilers to clang for iOS
|
||
13 years ago
|
include (CMakeForceCompiler)
|
||
12 years ago
|
#CMAKE_FORCE_C_COMPILER (clang GNU)
|
||
|
#CMAKE_FORCE_CXX_COMPILER (clang++ GNU)
|
||
13 years ago
|
|
||
13 years ago
|
set (CMAKE_C_SIZEOF_DATA_PTR 4)
|
||
|
set (CMAKE_C_HAS_ISYSROOT 1)
|
||
|
set (CMAKE_C_COMPILER_ABI ELF)
|
||
|
set (CMAKE_CXX_SIZEOF_DATA_PTR 4)
|
||
|
set (CMAKE_CXX_HAS_ISYSROOT 1)
|
||
|
set (CMAKE_CXX_COMPILER_ABI ELF)
|
||
|
|
||
13 years ago
|
# Skip the platform compiler checks for cross compiling
|
||
|
set (CMAKE_CXX_COMPILER_WORKS TRUE)
|
||
|
set (CMAKE_C_COMPILER_WORKS TRUE)
|
||
|
|
||
|
# Search for programs in the build host directories
|
||
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
|
||
|
# for libraries and headers in the target directories
|
||
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||
|
|
||
13 years ago
|
message (STATUS "iPhoneSimulator toolchain loaded")
|