[CMake] running ctest from a different directory than the build directory

Jiri Hoogland jiri.hoogland at gmail.com
Sat Jul 30 13:45:34 EDT 2016


Hi,

I would like to be able in a similar manner as I can run cmake like

cmake -H<src-directory> -B<bld-directory> cmake --build <bld_directory>

to run ctest like

ctest --build <bld_directory>

Obviously running ctest from the 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160730/5f4922bd/attachment.html>


More information about the CMake mailing list