From d16187642a7010d9b2722c0d8b724261b54ca327 Mon Sep 17 00:00:00 2001 From: YR Chen Date: Sun, 27 Feb 2022 01:30:37 +0800 Subject: [PATCH] Add support for vcpkg --- CMakeLists.txt | 3 ++- vcpkg.json | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 vcpkg.json diff --git a/CMakeLists.txt b/CMakeLists.txt index bbc945365f..107a9d0604 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,8 @@ if(HAS_LIBDISPATCH_API) find_package(dispatch CONFIG REQUIRED) endif() -find_package(ICU COMPONENTS uc i18n REQUIRED OPTIONAL_COMPONENTS data) +find_package(ICU COMPONENTS uc i18n REQUIRED) +find_package(ICU OPTIONAL_COMPONENTS data) include(SwiftSupport) include(GNUInstallDirs) diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000000..b9afaa7217 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,10 @@ +{ + "name": "swift-corelibs-foundation", + "version-string": "0.1.0", + "dependencies": [ + "curl", + "icu", + "libxml2", + "zlib" + ] +} \ No newline at end of file