diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e1149ed..74109f6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -55,13 +55,13 @@ endif() ENABLE_TESTING() -# use doctest_discover_tests for better CTest support +# Note: doctest and similar testing frameworks can automatically configure CMake tests +# For other testing frameworks add the tests target instead: +# ADD_TEST(GreeterTests GreeterTests) + include(${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake) doctest_discover_tests(GreeterTests) -# Note: for general testing frameworks use: -# ADD_TEST(GreeterTests GreeterTests) - # ---- code coverage ---- if (ENABLE_TEST_COVERAGE)