mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
39 lines
1.5 KiB
CMake
39 lines
1.5 KiB
CMake
#[[
|
|
This source file is part of the Swift Collections Open Source Project
|
|
|
|
Copyright (c) 2022 - 2024 Apple Inc. and the Swift project authors
|
|
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
|
See https://swift.org/LICENSE.txt for license information
|
|
#]]
|
|
|
|
if(COLLECTIONS_SINGLE_MODULE)
|
|
set(module_name ${COLLECTIONS_MODULE_NAME})
|
|
else()
|
|
set(module_name InternalCollectionsUtilities)
|
|
add_library(InternalCollectionsUtilities
|
|
${COLLECTIONS_UTILITIES_SOURCES})
|
|
set_target_properties(InternalCollectionsUtilities PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
|
|
_install_target(InternalCollectionsUtilities)
|
|
set_property(GLOBAL APPEND PROPERTY SWIFT_COLLECTIONS_EXPORTS InternalCollectionsUtilities)
|
|
endif()
|
|
|
|
target_sources(${module_name} PRIVATE
|
|
"autogenerated/Debugging.swift"
|
|
"autogenerated/Descriptions.swift"
|
|
"autogenerated/RandomAccessCollection+Offsets.swift"
|
|
"autogenerated/UnsafeBufferPointer+Extras.swift"
|
|
"autogenerated/UnsafeMutableBufferPointer+Extras.swift"
|
|
"IntegerTricks/autogenerated/FixedWidthInteger+roundUpToPowerOfTwo.swift"
|
|
"IntegerTricks/autogenerated/Integer rank.swift"
|
|
"IntegerTricks/autogenerated/UInt+first and last set bit.swift"
|
|
"IntegerTricks/autogenerated/UInt+reversed.swift"
|
|
"UnsafeBitSet/autogenerated/_UnsafeBitSet+Index.swift"
|
|
"UnsafeBitSet/autogenerated/_UnsafeBitSet+_Word.swift"
|
|
"UnsafeBitSet/autogenerated/_UnsafeBitSet.swift"
|
|
"_SortedCollection.swift"
|
|
"_UniqueCollection.swift"
|
|
)
|