Skip to content

Commit 8883480

Browse files
committed
Allow using ctest for testing
1 parent 33bef9b commit 8883480

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ cmake --build build --parallel
2121
## Test
2222

2323
```bash
24-
$ build/bin/run_tests
24+
$ ctest --test-dir build
2525
```
2626

2727
## Code coverage

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ add_executable(run_tests ${TEST_SRC_FILES})
44
target_link_libraries(run_tests PUBLIC
55
gtest_main
66
)
7+
8+
include(GoogleTest)
9+
gtest_discover_tests(run_tests)

0 commit comments

Comments
 (0)