Defined the Locations library in the Libraries package for the Locations target.

This commit is contained in:
Javier Cicchelli 2023-04-10 12:26:23 +02:00
parent 14e39a40ae
commit 74b30733df
3 changed files with 13 additions and 13 deletions

View File

@ -1,28 +1,28 @@
// swift-tools-version: 5.8 // swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "Libraries", name: "Libraries",
products: [ products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library( .library(
name: "Libraries", name: "Libraries",
targets: ["Libraries"]), targets: [
], "Locations"
dependencies: [ ]
// Dependencies declare other packages that this package depends on. ),
// .package(url: /* package url */, from: "1.0.0"),
], ],
dependencies: [],
targets: [ targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target( .target(
name: "Libraries", name: "Locations",
dependencies: []), dependencies: []
),
.testTarget( .testTarget(
name: "LibrariesTests", name: "LocationsTests",
dependencies: ["Libraries"]), dependencies: [
"Locations"
]
),
] ]
) )