2024-08-03 22:13:17 -07:00
|
|
|
cmake_minimum_required(VERSION 3.24)
|
2024-08-04 18:33:25 +10:00
|
|
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "13.6" CACHE STRING "Minimum OSX version" FORCE)
|
2024-09-22 00:59:58 +10:00
|
|
|
set(CMAKE_Swift_LANGUAGE_VERSION 6)
|
2024-08-03 22:13:17 -07:00
|
|
|
project(cxxswift LANGUAGES CXX Swift)
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
|
|
|
include(InitializeSwift)
|
|
|
|
include(AddSwift)
|
|
|
|
|
2024-08-04 15:08:26 -07:00
|
|
|
find_library(SDL3 SDL3 REQUIRED PATHS "${CMAKE_SOURCE_DIR}/Frameworks" NO_DEFAULT_PATH)
|
|
|
|
|
2024-09-22 00:59:58 +10:00
|
|
|
add_subdirectory(Sources/CppBackend)
|
|
|
|
add_subdirectory(Sources/SDLSwift)
|
|
|
|
add_subdirectory(Sources/SwiftFrontend)
|