add enable_testing() in cmake examples

This commit is contained in:
Sebastian Krieger 2018-09-25 16:16:23 +02:00 committed by GitHub
parent de06340e7d
commit 22258b17db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ target_link_libraries(foo Catch2::Catch2)
include(CTest)
include(Catch)
enable_testing()
catch_discover_tests(foo)
```
@ -150,6 +151,7 @@ target_link_libraries(foo Catch2::Catch2)
include(CTest)
include(ParseAndAddCatchTests)
enable_testing()
ParseAndAddCatchTests(foo)
```