I would like to be able in a similar manner as I can run cmake
like
cmake --build <bld_directory>
to run ctest
like
ctest --build <bld_directory>
Obviously running ctest
from the <bld-directory>
will work,
but it would be nice if I can just tell ctest
where to look for its configuration file and where the test executables are located.
From the documentation it is not very clear (or I might not have looked in the right place) if this is possible at all or not.
It would great if somebody could shed some light on if this is possible or not ? Many thanks, Jiri
ctest
to look in a custom directory for the tests by specifying the command line option:ctest --test-dir /path/to/tests
. Note, you must use CMake 3.20 or greater to get this CLI feature. – Timothy