[CMake] How can one use ctest/cdash with a target that is not "all"?

Nils Gladitz nilsgladitz at gmail.com
Sat Jan 11 10:00:34 EST 2014


On 11.01.2014 14:45, JR Cary wrote:
>
> To test the "all" build, I do the usual
>
>   make ExperimentalStart ExperimentalBuild ExperimentalTest 
> ExperimentalSubmit
>
> but for the "other" build, is there an easy way to do something like
>
>   make ExperimentalStart ExperimentalBuild-other 
> ExperimentalSubmit-other,
>

You could look into CTest scripting (ctest -S) which allows e.g.:
     ctest_build(TARGET other)

Nils


More information about the CMake mailing list