Skip to content

Commit

Permalink
Clarify what's really needed for SPM (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams authored Nov 24, 2021
1 parent afc8c4f commit 0e0df6f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,21 @@ For more examples, see
Add this library as a SwiftPM dependency:

```swift
dependencies: [
.package(url: "https://github.com/google/swift-benchmark", from: "0.1.0"),
]
let package = Package(
name: ... ,
products: [
.executable(name: "Benchmarks", targets: ["Benchmarks"])
],
dependencies: [
.package(url: "https://github.com/google/swift-benchmark", from: "0.1.0")
],
targets: [
.target(
name: "Benchmarks",
dependencies: [.product(name: "Benchmark", package: "swift-benchmark")]
)
]
)
```

## Roadmap
Expand Down

0 comments on commit 0e0df6f

Please sign in to comment.