Discover tests for ctest

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate
2025-02-07 02:47:41 +02:00
parent c235a11a86
commit 477388219c
2 changed files with 4 additions and 1 deletions

View File

@@ -129,7 +129,7 @@ cmake --build build
``` ```
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build -DBUILD_TESTING=ON cmake -DCMAKE_BUILD_TYPE=Release -S . -B build -DBUILD_TESTING=ON
cmake --build build cmake --build build
build/tests/tests ctest --test-dir build
``` ```
#### (Optional) Build the documentation: #### (Optional) Build the documentation:

View File

@@ -127,3 +127,6 @@ PRIVATE Catch2::Catch2WithMain
PRIVATE ${ZSTD_LIBRARIES} PRIVATE ${ZSTD_LIBRARIES}
PRIVATE ZLIB::ZLIB PRIVATE ZLIB::ZLIB
PRIVATE pugixml::pugixml) PRIVATE pugixml::pugixml)
include(Catch)
catch_discover_tests(tests)