mirror of https://github.com/catchorg/Catch2.git
add enable_testing() in cmake examples
This commit is contained in:
parent
de06340e7d
commit
22258b17db
|
@ -67,6 +67,7 @@ target_link_libraries(foo Catch2::Catch2)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
include(Catch)
|
include(Catch)
|
||||||
|
enable_testing()
|
||||||
catch_discover_tests(foo)
|
catch_discover_tests(foo)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -150,6 +151,7 @@ target_link_libraries(foo Catch2::Catch2)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
include(ParseAndAddCatchTests)
|
include(ParseAndAddCatchTests)
|
||||||
|
enable_testing()
|
||||||
ParseAndAddCatchTests(foo)
|
ParseAndAddCatchTests(foo)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue