Merge pull request #517 from cntrump/pr_improve_swiftpm Add testTarget for SwiftPM
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