`test` target doesn't depend on the test executables it is attempting to run.
While running make && make test
works fine, there seems to be no way to decouple tests from the all
target (using EXCLUDE_FROM_ALL
) and still allow make test
to work.
The reason is that the test
target doesn't depend on the test executables it attempts to execute.
The fix seems simple enough: add dependencies from test
to all the test executables as they are declared via add_test
.