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.
12 lines
467 B
12 lines
467 B
cmake_minimum_required(VERSION 3.23)
|
|
|
|
project(XcodeXCConfig C)
|
|
|
|
set(CMAKE_XCODE_XCCONFIG "$<IF:$<CONFIG:Debug>,XcodeXCConfig.global.debug.xcconfig,XcodeXCConfig.global.release.xcconfig>")
|
|
|
|
add_library(somelib XcodeXCConfig.c)
|
|
target_compile_definitions(somelib PUBLIC "BUILD_DEBUG=$<IF:$<CONFIG:Debug>,1,0>")
|
|
set_target_properties(somelib PROPERTIES
|
|
XCODE_XCCONFIG "$<IF:$<CONFIG:Debug>,XcodeXCConfig.target.debug.xcconfig,XcodeXCConfig.target.release.xcconfig>"
|
|
)
|