From 46cc551b7a98a7992c80fc1c3b38b5de29d7c431 Mon Sep 17 00:00:00 2001 From: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Date: Wed, 1 Apr 2020 01:12:10 +0800 Subject: [PATCH] Add vcpkg installation instructions (#1898) * Add vcpkg installation instructions * Add index --- docs/cmake-integration.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/cmake-integration.md b/docs/cmake-integration.md index 6ae798db..4bbc3f9d 100644 --- a/docs/cmake-integration.md +++ b/docs/cmake-integration.md @@ -6,6 +6,7 @@ [Automatic test registration](#automatic-test-registration)
[CMake project options](#cmake-project-options)
[Installing Catch2 from git repository](#installing-catch2-from-git-repository)
+[Installing Catch2 from vcpkg](#installing-catch2-from-vcpkg)
Because we use CMake to build Catch2, we also provide a couple of integration points for our users. @@ -220,6 +221,19 @@ when configuring the build, and then modify your calls to [find_package](https://cmake.org/cmake/help/latest/command/find_package.html) accordingly. +## Installing Catch2 from vcpkg + +Alternatively, you can build and install Catch2 using [vcpkg](https://github.com/microsoft/vcpkg/) dependency manager: +``` +git clone https://github.com/Microsoft/vcpkg.git +cd vcpkg +./bootstrap-vcpkg.sh +./vcpkg integrate install +./vcpkg install catch2 +``` + +The catch2 port in vcpkg is kept up to date by microsoft team members and community contributors. +If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. ---