CMakeLists.txt 766 B

12345678910111213141516171819202122232425
  1. #[[
  2. This source file is part of the Swift System open source project
  3. Copyright (c) 2020 - 2026 Apple Inc. and the Swift System project authors
  4. Licensed under Apache License v2.0 with Runtime Library Exception
  5. See https://swift.org/LICENSE.txt for license information
  6. #]]
  7. add_library(CSystem STATIC shims.c)
  8. target_include_directories(CSystem PUBLIC
  9. "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
  10. $<INSTALL_INTERFACE:include/CSystem>)
  11. install(FILES
  12. include/CSystemDarwin.h
  13. include/CSystemLinux.h
  14. include/CSystemShared.h
  15. include/CSystemWASI.h
  16. include/CSystemWindows.h
  17. include/CSystemFreeBSD.h
  18. include/io_uring.h
  19. include/module.modulemap
  20. DESTINATION include/CSystem)
  21. set_property(GLOBAL APPEND PROPERTY SWIFT_SYSTEM_EXPORTS CSystem)