diff --git a/Package.swift b/Package.swift index 3c995484..610c3ee3 100644 --- a/Package.swift +++ b/Package.swift @@ -242,6 +242,28 @@ let package = Package( .headerSearchPath("compiled_proto/"), ] ), + .target( + name: "json", + path: "third_party/json", + exclude:[ + "LICENSES", + "cmake", + "docs", + "single_include", + "tests", + "tools", + "CITATION.cff", + "CMakeLists.txt", + "ChangeLog.md", + "LICENSE.MIT", + "Makefile", + "README.md", + "meson.build", + "nlohmann_json.natvis", + "wsjcpp.yml", + ], + publicHeadersPath: "include/nlohmann/" + ), .target( name: "protobuf", path: "third_party/protobuf/src", @@ -373,6 +395,7 @@ let package = Package( name: "NearbyCoreAdapter", dependencies: [ "google-toolbox-for-mac", + "json", "smhasher", "ukey2", "protobuf",