bap-poc-phase-3/Interop-BridgingHeader/Package.swift

25 lines
843 B
Swift
Raw Normal View History

// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Interop-BridgingHeader",
platforms: [.macOS(.v15)],
products: [
.library(name: "CMath", targets: ["CMath"]),
.executable(name: "Interop-BridgingHeader", targets: ["Interop-BridgingHeader"])
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "CMath"),
.executableTarget(
name: "Interop-BridgingHeader",
dependencies: ["CMath"],
swiftSettings: [.interoperabilityMode(.C)]
),
]
)