Update documentation - add pkg-config examples.

Use -std=c++14 (instead of c++11). Pointers how to integrate with
pkg-config for non-CMake projects.
This commit is contained in:
Petr Kubánek
2022-05-24 10:07:17 +02:00
committed by Martin Hořeňovský
parent 3644b4135d
commit 0c13d021da
8 changed files with 13 additions and 9 deletions

View File

@@ -50,7 +50,8 @@ compilation times in the v3 version. The basic steps to do so are:
1. Change your CMakeLists.txt to link against `Catch2WithMain` target if
you use Catch2's default main. (If you do not, keep linking against
the `Catch2` target.)
the `Catch2` target.). If you use pkg-config, change `pkg-config catch2` to
`pkg-config catch2-with-main`.
2. Delete TU with `CATCH_CONFIG_RUNNER` or `CATCH_CONFIG_MAIN` defined,
as it is no longer needed.
3. Change `#include <catch2/catch.hpp>` to `#include <catch2/catch_all.hpp>`