Мой файл пакета Swift —
Код: Выделить всё
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "AVTPG_Module",
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "AVTPG_Module",
targets: ["AVTPG_Module"]
),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
.target(
name: "CppModule",
path: "Sources/CppModule",
cxxSettings: [
.headerSearchPath("include")
]
), //
Подробнее здесь: [url]https://stackoverflow.com/questions/79060618/can-not-use-multiple-c-files-in-swift-package[/url]