diff --git a/examples/catch2/CMakeLists.txt b/examples/catch2/CMakeLists.txt index f4d3e226..2e171ae2 100644 --- a/examples/catch2/CMakeLists.txt +++ b/examples/catch2/CMakeLists.txt @@ -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)