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.
20 lines
546 B
20 lines
546 B
9 years ago
|
cmake_minimum_required(VERSION 3.3)
|
||
|
|
||
|
project(XcodeIOSInstallCombinedSingleArch CXX)
|
||
|
|
||
|
set(CMAKE_OSX_SYSROOT iphoneos)
|
||
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
|
||
|
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf")
|
||
|
|
||
|
add_library(foo SHARED foo.cpp)
|
||
|
install(TARGETS foo DESTINATION lib)
|
||
|
|
||
|
set_target_properties(
|
||
|
foo
|
||
|
PROPERTIES
|
||
|
XCODE_ATTRIBUTE_ARCHS[sdk=iphoneos*] armv7
|
||
|
XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphoneos*] armv7
|
||
|
XCODE_ATTRIBUTE_ARCHS[sdk=iphonesimulator*] ""
|
||
|
XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphonesimulator*] ""
|
||
|
)
|