Add GCD files to CMake build.

This commit is contained in:
Stephen Canon committed 2021-09-20 12:35:22 -04:00
1 parent abb899865e
commit e22ff866a4
3 files changed
+9

No files matched your search

+1
View File
@@ -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)
+7
View File
@@ -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)