bash-3.2$ ctest --preset=ninja-multi --config Release
Test project /Users/clausklein/Workspace/cpp/ModernCmakeStarter/build/ninja-multi
Start 1: GreeterTests
Test not available without configuration. (Missing "-C <config>"?)
1/1 Test #1: GreeterTests .....................***Not Run 0.00 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.10 sec
The following tests FAILED:
1 - GreeterTests (Not Run)
Errors while running CTest
but this works:
bash-3.2$ cmake --build --preset=ninja-multi --config Release --target test
[0/1] Running tests...
Test project /Users/clausklein/Workspace/cpp/ModernCmakeStarter/build/ninja-multi
Start 1: GreeterTests
1/1 Test #1: GreeterTests ..................... Passed 0.60 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 0.62 sec
bash-3.2$