During my first CTest (and CMake) project, I get for CTest the error
‘No tests were found!!!’
I added these four lines to CMakeLists.txt, just before the last install command inside CMakeLists.txt:
enable_testing()
add_executable(tester tester.cpp)
add_test(Tester tester)
target_link_libraries(tester PRIVATE ${PROJECT_NAME})
And I created in the main folder of the (Visual Studio CMake) project, a file tester.cpp.
Does anyone know how to fix it?