Skip to content

Commit c578ff6

Browse files
authored
Update README.md
1 parent b486179 commit c578ff6

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,31 @@ The algorithms are documented in
3333
Add the following to your `Package.swift` file:
3434

3535
```swift
36-
dependencies: [
37-
.package(url: "https://github.com/scottrhoyt/geographiclib-swift.git", from: "0.1.0")
38-
]
36+
import PackageDescription
37+
38+
let package = Package(
39+
name: "MyPackage",
40+
41+
/* ... */
42+
43+
dependencies: [
44+
.package(url: "https://github.com/scottrhoyt/geographiclib-swift.git", from: "0.1.0"),
45+
],
46+
47+
/* ... */
48+
49+
targets: [
50+
.target(
51+
name: "MyPackage",
52+
dependencies: [
53+
.product(name: "GeographicLib", package: "geographiclib-swift")
54+
]
55+
)
56+
]
57+
58+
/* ... */
59+
60+
)
3961
```
4062

4163
## Usage

0 commit comments

Comments
 (0)