Added support of Swift Package Manager
This allows to add fmt as dependency to other Swift Packages or Xcode projects
This commit is contained in:
parent
e17bc67547
commit
e316dc78f4
1
.gitignore
vendored
1
.gitignore
vendored
@ -22,3 +22,4 @@ cmake_install.cmake
|
||||
fmt-*.cmake
|
||||
fmt.pc
|
||||
virtualenv
|
||||
.swiftpm/xcode
|
||||
|
||||
31
Package.swift
Normal file
31
Package.swift
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
// swift-tools-version: 5.8
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "fmt",
|
||||
platforms: [
|
||||
.macOS(.v11),
|
||||
.iOS(.v13)
|
||||
],
|
||||
products: [
|
||||
.library(
|
||||
name: "fmt",
|
||||
targets: ["fmt"]),
|
||||
],
|
||||
targets: [
|
||||
.target(name: "fmt",
|
||||
path: "",
|
||||
exclude:[
|
||||
// module library is not needed for swift package
|
||||
"src/fmt.cc",
|
||||
],
|
||||
sources:[
|
||||
"src"
|
||||
],
|
||||
publicHeadersPath:"include"
|
||||
)
|
||||
],
|
||||
cxxLanguageStandard: .cxx20
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user