2023-01-02 21:48:32 +08:00
|
|
|
// 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"]),
|
2023-01-03 22:24:50 +08:00
|
|
|
.executable(name: "leetcode_two_sum", targets: ["leetcode_two_sum"]),
|
2023-01-05 21:16:05 +08:00
|
|
|
.executable(name: "array", targets: ["array"]),
|
2023-01-08 20:22:59 +08:00
|
|
|
.executable(name: "linked_list", targets: ["linked_list"]),
|
2023-01-02 21:48:32 +08:00
|
|
|
],
|
|
|
|
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"]),
|
2023-01-03 22:24:50 +08:00
|
|
|
.executableTarget(name: "leetcode_two_sum", path: "chapter_computational_complexity", sources: ["leetcode_two_sum.swift"]),
|
2023-01-05 21:16:05 +08:00
|
|
|
.executableTarget(name: "array", path: "chapter_array_and_linkedlist", sources: ["array.swift"]),
|
2023-01-08 20:22:59 +08:00
|
|
|
.executableTarget(name: "linked_list", dependencies: ["utils"], path: "chapter_array_and_linkedlist", sources: ["linked_list.swift"]),
|
2023-01-02 21:48:32 +08:00
|
|
|
]
|
|
|
|
)
|