summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftMix/CMakeLists.txt
blob: 6d8e48bd06df95f2df8f605adb2ae5ecc4742904 (plain)
1
2
3
4
5
6
cmake_minimum_required(VERSION 3.3)
project(SwiftMix C Swift)

add_executable(SwiftMix CMain.c ObjCMain.m SwiftMain.swift ObjC-Swift.h)
set_property(TARGET SwiftMix PROPERTY XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "ObjC-Swift.h")
target_compile_options(SwiftMix PRIVATE "$<$<COMPILE_LANGUAGE:C>:-Werror=objc-method-access>")