mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 00:06:28 +08:00
18 lines
886 B
Swift
18 lines
886 B
Swift
// swift-tools-version: 5.7
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "HelloAlgo",
|
|
products: [
|
|
.executable(name: "time_complexity", targets: ["time_complexity"]),
|
|
.executable(name: "worst_best_time_complexity", targets: ["worst_best_time_complexity"]),
|
|
.executable(name: "space_complexity", targets: ["space_complexity"]),
|
|
],
|
|
targets: [
|
|
.target(name: "utils", path: "utils"),
|
|
.executableTarget(name: "time_complexity", path: "chapter_computational_complexity", sources: ["time_complexity.swift"]),
|
|
.executableTarget(name: "worst_best_time_complexity", path: "chapter_computational_complexity", sources: ["worst_best_time_complexity.swift"]),
|
|
.executableTarget(name: "space_complexity", dependencies: ["utils"], path: "chapter_computational_complexity", sources: ["space_complexity.swift"]),
|
|
]
|
|
)
|