c and cpp mixed attempt

This commit is contained in:
2024-08-04 17:08:27 -07:00
parent 99d4d99d76
commit 93d3feca7e
8 changed files with 16 additions and 27 deletions

View File

@ -1,7 +1,6 @@
add_library(SDLSwift INTERFACE)
set_property(TARGET SDLSwift PROPERTY Swift_MODULE_NAME "SDL3")
target_compile_options(SDLSwift INTERFACE "$<$<COMPILE_LANGUAGE:Swift>:-cxx-interoperability-mode=default>")
target_include_directories(SDLSwift INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(SDLSwift INTERFACE ${SDL3})

View File

@ -1,3 +1,3 @@
module SDL3 {
module SDL3 [extern_c] {
header "shim.h"
}