mirror of
https://github.com/apple/swift-system
synced 2026-11-22 04:30:46 +00:00
29 lines
798 B
CMake
29 lines
798 B
CMake
#[[
|
|
This source file is part of the Swift System open source project
|
|
|
|
Copyright (c) 2020 Apple Inc. and the Swift System project authors
|
|
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
|
See https://swift.org/LICENSE.txt for license information
|
|
#]]
|
|
|
|
cmake_minimum_required(VERSION 3.29)
|
|
project(SwiftSystem
|
|
LANGUAGES C Swift)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
set(CMAKE_Swift_LANGUAGE_VERSION 6)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules)
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
|
|
|
|
include(SwiftSupport)
|
|
|
|
add_subdirectory(Sources)
|
|
add_subdirectory(cmake/modules)
|