From e22ff866a40e305aaa7f4f53338c7716cb919128 Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Mon, 20 Sep 2021 12:35:22 -0400 Subject: [PATCH] Add GCD files to CMake build. --- Sources/IntegerUtilities/CMakeLists.txt | 1 + Tests/IntegerUtilitiesTests/CMakeLists.txt | 1 + Tests/WindowsMain.swift | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/Sources/IntegerUtilities/CMakeLists.txt b/Sources/IntegerUtilities/CMakeLists.txt index f09216e..410df3a 100644 --- a/Sources/IntegerUtilities/CMakeLists.txt +++ b/Sources/IntegerUtilities/CMakeLists.txt @@ -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}) diff --git a/Tests/IntegerUtilitiesTests/CMakeLists.txt b/Tests/IntegerUtilitiesTests/CMakeLists.txt index 287cf1b..0b18d22 100644 --- a/Tests/IntegerUtilitiesTests/CMakeLists.txt +++ b/Tests/IntegerUtilitiesTests/CMakeLists.txt @@ -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) diff --git a/Tests/WindowsMain.swift b/Tests/WindowsMain.swift index b956a8c..d0336f5 100644 --- a/Tests/WindowsMain.swift +++ b/Tests/WindowsMain.swift @@ -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)