Skip to content

Commit

Permalink
Update Catch2 example to use catch_discover_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Jan 14, 2024
1 parent d24e4f2 commit a7c6906
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/catch2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ target_compile_features(CPMExampleCatch2 PRIVATE cxx_std_17)

# ---- Enable testing ----

include(Catch)

enable_testing()
add_test(CPMExampleCatch2 CPMExampleCatch2)
catch_discover_tests(CPMExampleCatch2)

0 comments on commit a7c6906

Please sign in to comment.