mirror of
https://github.com/apple/swift-numerics
synced 2026-11-27 05:04:26 +00:00
Add GCD files to CMake build.
This commit is contained in:
1 parent
abb899865e
commit
e22ff866a4
3 files changed
+9
No files matched your search
@@ -8,6 +8,7 @@ See https://swift.org/LICENSE.txt for license information
|
||||
#]]
|
||||
|
||||
add_library(IntegerUtilities
|
||||
GCD.swift
|
||||
Rotate.swift)
|
||||
set_target_properties(IntegerUtilities PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
||||
|
||||
@@ -8,6 +8,7 @@ See https://swift.org/LICENSE.txt for license information
|
||||
#]]
|
||||
|
||||
add_library(IntegerUtilitiesTests
|
||||
GCDTests.swift
|
||||
RotateTests.swift)
|
||||
target_compile_options(IntegerUtilitiesTests PRIVATE
|
||||
-enable-testing)
|
||||
|
||||
@@ -90,6 +90,12 @@ extension RotateTests {
|
||||
])
|
||||
}
|
||||
|
||||
extension IntegerUtilitiesGCDTests {
|
||||
static var all = testCase([
|
||||
("testGCDInt", IntegerUtilitiesGCDTests.testGCDInt),
|
||||
])
|
||||
}
|
||||
|
||||
var testCases = [
|
||||
ComplexTests.ApproximateEqualityTests.all,
|
||||
RealTests.ApproximateEqualityTests.all,
|
||||
@@ -98,6 +104,7 @@ var testCases = [
|
||||
ArithmeticTests.all,
|
||||
PropertyTests.all,
|
||||
RotateTests.all,
|
||||
IntegerUtilitiesGCDTests.all,
|
||||
]
|
||||
|
||||
#if swift(>=5.3) && canImport(_Differentiation)
|
||||
|
||||
Reference in new issue
Block a user