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.
27 lines
801 B
27 lines
801 B
2 years ago
|
enable_language(CXX)
|
||
9 years ago
|
|
||
2 years ago
|
set(iphoneos_arch armv7)
|
||
|
if(XCODE_VERSION VERSION_GREATER_EQUAL 14)
|
||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 16)
|
||
|
set(iphoneos_arch arm64)
|
||
|
elseif(XCODE_VERSION VERSION_GREATER_EQUAL 9)
|
||
5 years ago
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 10)
|
||
|
endif()
|
||
7 years ago
|
|
||
3 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO")
|
||
9 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
|
||
5 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "")
|
||
9 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf")
|
||
|
|
||
|
add_library(foo SHARED foo.cpp)
|
||
|
install(TARGETS foo DESTINATION lib)
|
||
|
|
||
|
set_target_properties(
|
||
|
foo
|
||
|
PROPERTIES
|
||
2 years ago
|
XCODE_ATTRIBUTE_ARCHS[sdk=iphoneos*] ${iphoneos_arch}
|
||
|
XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphoneos*] ${iphoneos_arch}
|
||
9 years ago
|
XCODE_ATTRIBUTE_ARCHS[sdk=iphonesimulator*] ""
|
||
|
XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphonesimulator*] ""
|
||
|
)
|