mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 11:23:29 +01:00
Add new instructions to be more clear on how to get Catch2
This commit is contained in:
parent
efb54926ee
commit
b25165a7cf
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user