1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

Support Apple's Swift Package Manager (#4010)

Co-authored-by: Aleksei <sapial@f-secure.com>
This commit is contained in:
Aleksei Sapitskii
2023-10-21 20:41:10 +03:00
committed by GitHub
parent edffad036d
commit 58d6aa5831
3 changed files with 27 additions and 0 deletions

22
Package.swift Normal file
View File

@ -0,0 +1,22 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "nlohmann-json",
platforms: [
.iOS(.v12), .macOS(.v10_13), .tvOS(.v12), .watchOS(.v4)
],
products: [
.library(name: "json", targets: ["json"])
],
targets: [
.target(
name: "json",
path: "single_include/nlohmann",
publicHeadersPath: "."
)
],
cxxLanguageStandard: .cxx11
)