Add new instructions to be more clear on how to get Catch2

This commit is contained in:
james 2022-01-30 22:43:25 +00:00
parent efb54926ee
commit b25165a7cf
2 changed files with 8 additions and 0 deletions

View File

@ -312,6 +312,12 @@ when configuring the build, and then modify your calls to
[find_package](https://cmake.org/cmake/help/latest/command/find_package.html)
accordingly.
If you are on windows you will need to use an admin level powershell or command prompt and run the command:
```
cmake --build build/ --target install
```
## Installing Catch2 from vcpkg
Alternatively, you can build and install Catch2 using [vcpkg](https://github.com/microsoft/vcpkg/) dependency manager:

View File

@ -12,6 +12,8 @@
## Getting Catch2
Before using Catch2 you need to install it via a package manager, using [git](cmake-integration.md#installing-catch2-from-git-repository) or via [vcpkg](cmake-integration.md#installing-catch2-from-vcpkg)
Ideally you should be using Catch2 through its [CMake integration](cmake-integration.md#top).
Catch2 also provides pkg-config files and single TU distribution, but this
documentation will assume you are using CMake. If you are using single-TU