Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-02-22 20:59:12 +0100
committerGitHub2023-02-22 20:59:12 +0100
commit27ba26f743d56e9f0a67e649d049c383f5aac789 (patch)
tree7692fe8bc70d14637d84485cb323a80f184d4547 /docs
parenta209bcfb54f493dc199baf315bd468491a0ceccd (diff)
parent4ff9be3bc56b7a1ab3be33d28dc645405956e558 (diff)
downloadcatch3-27ba26f743d56e9f0a67e649d049c383f5aac789.tar.gz
Merge pull request #2643 from kisielk/patch-1
cmake-integration.md: Use "tests" as test target name in all examples.
Diffstat (limited to 'docs')
-rw-r--r--docs/cmake-integration.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/cmake-integration.md b/docs/cmake-integration.md
index dd0f9e26..0720a95b 100644
--- a/docs/cmake-integration.md
+++ b/docs/cmake-integration.md
@@ -90,12 +90,12 @@ cmake_minimum_required(VERSION 3.5)
project(baz LANGUAGES CXX VERSION 0.0.1)
find_package(Catch2 REQUIRED)
-add_executable(foo test.cpp)
-target_link_libraries(foo PRIVATE Catch2::Catch2)
+add_executable(tests test.cpp)
+target_link_libraries(tests PRIVATE Catch2::Catch2)
include(CTest)
include(Catch)
-catch_discover_tests(foo)
+catch_discover_tests(tests)
```
When using `FetchContent`, `include(Catch)` will fail unless
@@ -108,7 +108,7 @@ directory.
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
include(CTest)
include(Catch)
-catch_discover_tests()
+catch_discover_tests(tests)
```
#### Customization
@@ -222,12 +222,12 @@ cmake_minimum_required(VERSION 3.5)
project(baz LANGUAGES CXX VERSION 0.0.1)
find_package(Catch2 REQUIRED)
-add_executable(foo test.cpp)
-target_link_libraries(foo PRIVATE Catch2::Catch2)
+add_executable(tests test.cpp)
+target_link_libraries(tests PRIVATE Catch2::Catch2)
include(CTest)
include(ParseAndAddCatchTests)
-ParseAndAddCatchTests(foo)
+ParseAndAddCatchTests(tests)
```