Commit 2cec6addaf4acbd8250611ec4cecadf1f4d655ee

Steffen Jaeckel 2021-12-02T10:39:10

Merge pull request #517 from cntrump/pr_improve_swiftpm Add testTarget for SwiftPM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/Package.swift b/Package.swift
index 1ed4dd3..54a195b 100644
--- a/Package.swift
+++ b/Package.swift
@@ -28,9 +28,12 @@ let package = Package(
             sources: ["."],
             publicHeadersPath: "modulemap",
             cSettings: [
-                .headerSearchPath("."),
                 .unsafeFlags(["-flto=thin"])  // for Dead Code Elimination
-            ])
+            ]),
+        .testTarget(name: "TommathTests",
+                    dependencies: ["libtommath"],
+                    path: "demo",
+                    sources: ["tommath_tests.swift"])
     ],
     cLanguageStandard: .gnu11,
     cxxLanguageStandard: .gnucxx14