diff --git a/.gitignore b/.gitignore index 1dc3436c..93007a6f 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,4 @@ cmake-build-*/ # macos *.DS_store *.xcodeproj/ +.swiftpm/xcode diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..581c8e42 --- /dev/null +++ b/Package.swift @@ -0,0 +1,32 @@ + +// swift-tools-version: 5.8 + +import PackageDescription + +let package = Package( + name: "spdlog", + platforms: [ + .macOS(.v11), + .iOS(.v13) + ], + products: [ + .library( + name: "spdlog", + targets: ["spdlog"]), + ], + targets: [ + .target(name: "spdlog", + path: "", + exclude:[ + ], + sources:[ + "src" + ], + publicHeadersPath:"include", + cSettings: [ + .define("SPDLOG_COMPILED_LIB"), + ] + ) + ], + cxxLanguageStandard: .cxx20 +)