Skip to content

Commit 09f3506

Browse files
committed
Add SPM Support
1 parent 07b1a95 commit 09f3506

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ DerivedData
2020
Index
2121
Build
2222

23+
.build

Package.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// swift-tools-version:4.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "Algorithm",
8+
products: [
9+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10+
.library(
11+
name: "Algorithm",
12+
targets: ["Algorithm"]),
13+
],
14+
dependencies: [
15+
// Dependencies declare other packages that this package depends on.
16+
// .package(url: /* package url */, from: "1.0.0"),
17+
],
18+
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
21+
.target(
22+
name: "Algorithm",
23+
dependencies: [],
24+
path: "Sources"),
25+
.testTarget(
26+
name: "AlgorithmTests",
27+
dependencies: ["Algorithm"],
28+
path: "Tests"),
29+
]
30+
)

0 commit comments

Comments
 (0)