restore c++ backend using swift 6's improved interop

This commit is contained in:
2024-09-22 00:59:58 +10:00
parent 93d3feca7e
commit 77603b582c
9 changed files with 35 additions and 26 deletions

View File

@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.24)
set(CMAKE_OSX_DEPLOYMENT_TARGET "13.6" CACHE STRING "Minimum OSX version" FORCE)
set(CMAKE_Swift_LANGUAGE_VERSION 6)
project(cxxswift LANGUAGES CXX Swift)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
@ -8,4 +9,6 @@ include(AddSwift)
find_library(SDL3 SDL3 REQUIRED PATHS "${CMAKE_SOURCE_DIR}/Frameworks" NO_DEFAULT_PATH)
add_subdirectory(Sources)
add_subdirectory(Sources/CppBackend)
add_subdirectory(Sources/SDLSwift)
add_subdirectory(Sources/SwiftFrontend)