[CMake] Rename target RUN_TESTS

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 2 14:16:56 EST 2015


On 1/2/2015 6:19 AM, Scott Aron Bloom wrote:
> That doesn't work:(
>
> Unfortunately it "could" be that I have put the custom target command in the wrong location, however, I put it as the last line in my top level CMakeLists.txt
>
> ADD_CUSTOM_TARGET( ALL_RUN_TEST DEPENDS RUN_TESTS )
>
> But it doesn't right mouse clicking -> build doesn't give the same results as building "RUN_TESTS"
RUN_TESTS just runs ctest in a specific directory.  It is easy to create 
a custom target ALL_RUN_TESTS  that does the same thing.

-Bill



More information about the CMake mailing list