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.
28 lines
1.1 KiB
28 lines
1.1 KiB
2 years ago
|
enable_language(C)
|
||
7 years ago
|
|
||
|
# using Xcode 7.1 SDK versions for deployment targets
|
||
|
|
||
5 years ago
|
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||
7 years ago
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "9.1")
|
||
3 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO")
|
||
7 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
|
||
|
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE "NO")
|
||
5 years ago
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "watchOS")
|
||
7 years ago
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "2.0")
|
||
3 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO")
|
||
7 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
|
||
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "")
|
||
|
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE "YES")
|
||
5 years ago
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "tvOS")
|
||
7 years ago
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "9.0")
|
||
3 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO")
|
||
7 years ago
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
|
||
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "")
|
||
|
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE "YES")
|
||
|
else()
|
||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11")
|
||
|
endif()
|
||
|
|
||
|
add_library(myFramework STATIC DeploymentTarget.c)
|
||
|
set_target_properties(myFramework PROPERTIES FRAMEWORK TRUE)
|