Skip to content

Commit e22ff86

Browse files
committed
Add GCD files to CMake build.
1 parent abb8998 commit e22ff86

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Sources/IntegerUtilities/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ See https://swift.org/LICENSE.txt for license information
88
#]]
99

1010
add_library(IntegerUtilities
11+
GCD.swift
1112
Rotate.swift)
1213
set_target_properties(IntegerUtilities PROPERTIES
1314
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})

Tests/IntegerUtilitiesTests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ See https://swift.org/LICENSE.txt for license information
88
#]]
99

1010
add_library(IntegerUtilitiesTests
11+
GCDTests.swift
1112
RotateTests.swift)
1213
target_compile_options(IntegerUtilitiesTests PRIVATE
1314
-enable-testing)

Tests/WindowsMain.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ extension RotateTests {
9090
])
9191
}
9292

93+
extension IntegerUtilitiesGCDTests {
94+
static var all = testCase([
95+
("testGCDInt", IntegerUtilitiesGCDTests.testGCDInt),
96+
])
97+
}
98+
9399
var testCases = [
94100
ComplexTests.ApproximateEqualityTests.all,
95101
RealTests.ApproximateEqualityTests.all,
@@ -98,6 +104,7 @@ var testCases = [
98104
ArithmeticTests.all,
99105
PropertyTests.all,
100106
RotateTests.all,
107+
IntegerUtilitiesGCDTests.all,
101108
]
102109

103110
#if swift(>=5.3) && canImport(_Differentiation)

0 commit comments

Comments
 (0)