mirror of
https://github.com/apple/swift-system
synced 2026-11-25 04:47:55 +00:00
23 lines
695 B
CMake
23 lines
695 B
CMake
#[[
|
|
This source file is part of the Swift System open source project
|
|
|
|
Copyright (c) 2020 - 2026 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
|
|
#]]
|
|
|
|
add_library(CSystem STATIC shims.c)
|
|
target_include_directories(CSystem PUBLIC
|
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
|
$<INSTALL_INTERFACE:include/CSystem>)
|
|
|
|
install(FILES
|
|
include/CSystemLinux.h
|
|
include/CSystemShared.h
|
|
include/CSystemWindows.h
|
|
include/CSystemFreeBSD.h
|
|
include/module.modulemap
|
|
DESTINATION include/CSystem)
|
|
set_property(GLOBAL APPEND PROPERTY SWIFT_SYSTEM_EXPORTS CSystem)
|