718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
50 lines
1.5 KiB
CMake
50 lines
1.5 KiB
CMake
# Standard settings
|
|
# set(UNIX True)
|
|
# set(Darwin True)
|
|
# set(IOS True)
|
|
set (CMAKE_SYSTEM_NAME Darwin)
|
|
set (CMAKE_SYSTEM_VERSION 1)
|
|
set (UNIX True)
|
|
set (APPLE True)
|
|
set (IOS True)
|
|
|
|
# suppress -rdynamic
|
|
# set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
set(CMAKE_C_COMPILER i386-apple-darwin11-clang)
|
|
set(CMAKE_CXX_COMPILER i386-apple-darwin11-clang++)
|
|
|
|
set(_CMAKE_TOOLCHAIN_PREFIX i386-apple-darwin11-)
|
|
|
|
set(CMAKE_IOS_SDK_ROOT "/home/nihui/osd/cctools-port/usage_examples/ios_toolchain/target-sim/SDK/iPhoneSimulator10.2.sdk")
|
|
|
|
# Set the sysroot default to the most recent SDK
|
|
set(CMAKE_OSX_SYSROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Sysroot used for iOS Simulator support")
|
|
|
|
# set the architecture for iOS
|
|
set(IOS_ARCH x86_64)
|
|
|
|
set(CMAKE_OSX_ARCHITECTURES ${IOS_ARCH} CACHE STRING "Build architecture for iOS Simulator")
|
|
|
|
if(NOT DEFINED ENABLE_BITCODE)
|
|
# enable bitcode support by default
|
|
set(ENABLE_BITCODE TRUE CACHE BOOL "enable bitcode")
|
|
endif()
|
|
|
|
if(ENABLE_BITCODE)
|
|
# enable bitcode
|
|
set(CMAKE_C_FLAGS "-fembed-bitcode ${CMAKE_C_FLAGS}")
|
|
set(CMAKE_CXX_FLAGS "-fembed-bitcode ${CMAKE_CXX_FLAGS}")
|
|
endif()
|
|
|
|
# Set the find root to the iOS developer roots and to user defined paths
|
|
set(CMAKE_FIND_ROOT_PATH ${CMAKE_IOS_DEVELOPER_ROOT} ${CMAKE_IOS_SDK_ROOT} ${CMAKE_PREFIX_PATH} CACHE STRING "iOS Simulator find search path root")
|
|
|
|
# searching for frameworks only
|
|
set(CMAKE_FIND_FRAMEWORK FIRST)
|
|
|
|
# set up the default search directories for frameworks
|
|
set(CMAKE_SYSTEM_FRAMEWORK_PATH
|
|
${CMAKE_IOS_SDK_ROOT}/System/Library/Frameworks
|
|
)
|