summaryrefslogtreecommitdiff
path: root/json4cpp/Package.swift
diff options
context:
space:
mode:
Diffstat (limited to 'json4cpp/Package.swift')
-rw-r--r--json4cpp/Package.swift22
1 files changed, 22 insertions, 0 deletions
diff --git a/json4cpp/Package.swift b/json4cpp/Package.swift
new file mode 100644
index 0000000000..2f1e654a2c
--- /dev/null
+++ b/json4cpp/Package.swift
@@ -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), .visionOS(.v1)
+ ],
+ products: [
+ .library(name: "json", targets: ["json"])
+ ],
+ targets: [
+ .target(
+ name: "json",
+ path: "single_include/nlohmann",
+ publicHeadersPath: "."
+ )
+ ],
+ cxxLanguageStandard: .cxx11
+)