[CMake] CTest question...

Eric Noulard eric.noulard at gmail.com
Thu Nov 20 01:31:54 EST 2008


2008/11/20 BRM <bm_witness at yahoo.com>:
> It was reporting that it could not find the executable.
> However, this was certainly a PEBKAC issue (do'h) - I forgot to have an ADD_EXECUTABLE() for the test program - or even an CREATE_TEST_SOURCE_LIST()...though so it shouldn't have been finding it. Though I am not sure what the best method is...I don't want these executables installed when I do a 'make install' later...

You may ADD_EXECUTABLE without
corresponding INSTALL
this way built executable won't be installed at all.
This is usually the case with "test executable".

> while I am no where near needing to think about the install process (far too much to go before the project will be ready for that), it would be good to avoid doing it the wrong-even-if-it-works way.
>
> Thanks for the tip on the ADD_TEST()...I was simply trying to follow the referenced WIKI page -

> it made no mention of needing to define the EXECUTE_OUTPUT_PATH variable...
> It probably should be amended to just read as you mentioned.

Go ahead with the sharing of your experience.
It's a Wiki, open an account and add more valuable informations :=)

> I've now got it working. Thanks!

Good point.
-- 
Erk


More information about the CMake mailing list