-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
38 lines (37 loc) · 1003 Bytes
/
Package.swift
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
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "SwiftCppPlayground",
platforms: [
.iOS(.v13), // Define platform versions if needed
.tvOS(.v13),
.macOS(.v11),
],
products: [
.library(
name: "SwiftPrinter",
targets: ["SwiftPrinter"]
),
],
dependencies: [
// Add external dependencies here if any
],
targets: [
.target(
name: "CppPrinter",
path: "CppPrinter",
publicHeadersPath: "include", // Path to the public headers
cxxSettings: [
.headerSearchPath(""), // Ensure the header search path is correct
]
),
.target(
name: "SwiftPrinter",
dependencies: ["CppPrinter"],
path: "SwiftPrinter",
swiftSettings: [
.interoperabilityMode(.Cxx), // C++ interoperability setting
]
),
]
)