diff options
| author | Phoebe | 2020-04-01 01:12:10 +0800 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-01 09:31:41 +0200 |
| commit | 46cc551b7a98a7992c80fc1c3b38b5de29d7c431 (patch) | |
| tree | ec486995b47523f0bba8aaeb6f585fe36ca1f8e6 | |
| parent | f34aacfe5fa72ccc5c0bc33311d69844d6d6f25b (diff) | |
| download | catch3-46cc551b7a98a7992c80fc1c3b38b5de29d7c431.tar.gz | |
Add vcpkg installation instructions (#1898)
* Add vcpkg installation instructions
* Add index
| -rw-r--r-- | docs/cmake-integration.md | 14 |
1 files changed, 14 insertions, 0 deletions
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)<br> [CMake project options](#cmake-project-options)<br> [Installing Catch2 from git repository](#installing-catch2-from-git-repository)<br> +[Installing Catch2 from vcpkg](#installing-catch2-from-vcpkg)<br> 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. --- |