Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
71 lines (64 loc) · 1.89 KB
/
Copy pathPackage.swift
File metadata and controls
71 lines (64 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "SwiftQiskit",
platforms: [
.macOS("27.0"),
.iOS("27.0")
],
products: [
// Core library
.library(
name: "SwiftQiskit",
targets: ["SwiftQiskit"]
),
// Shared, UI-free-Core-preserving SwiftUI views (BlochVector, Bloch sphere views, CHSHChartView, TensorNetworkView)
.library(
name: "SwiftQiskitViews",
targets: ["SwiftQiskitViews"]
),
// CLI example
.executable(
name: "SwiftQiskitExamples",
targets: ["SwiftQiskitExamples"]
)
],
targets: [
// =========================
// Core quantum engine
// =========================
.target(
name: "SwiftQiskit",
path: "Sources/SwiftQiskit"
),
// =========================
// Shared SwiftUI views (BlochVector, Bloch sphere views, CHSHChartView, TensorNetworkView)
// =========================
.target(
name: "SwiftQiskitViews",
dependencies: ["SwiftQiskit"],
path: "Sources/SwiftQiskitViews"
),
// =========================
// CLI Example (Bell State)
// =========================
.executableTarget(
name: "SwiftQiskitExamples",
dependencies: ["SwiftQiskit"],
path: "Examples"
),
// =========================
// Tests
// =========================
.testTarget(
name: "SwiftQiskitTests",
dependencies: ["SwiftQiskit"],
path: "Tests/SwiftQiskitTests"
),
.testTarget(
name: "SwiftQiskitViewsTests",
dependencies: ["SwiftQiskitViews"],
path: "Tests/SwiftQiskitViewsTests"
)
]
)