I have setup our unit tests to output a junit report, and the junit report is what is in the all target. Thus my unit tests don't run on a make install if they have run during the original make. If anything was rebuilt during the make install only the affected tests are run.
This of course depends on your test framework having the ability to create an output file. (but there are enough useful things to do from a junit output that I suggest you should refuse a framework that doesn't) From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Scott Aron Bloom Sent: Friday, March 20, 2015 6:24 PM To: Scott Aron Bloom; CMake ML Subject: Re: [CMake] unit tests include in "all" but not install For those who couldn't understand my jibberish.. I apologize, never send email from a phone... Ill restate... In general, I want all my unit tests to be built when I do a make all, but I really don't care if they are up to date for a make install. Is that a possibility? Ie, add the exclude from all attribute, that is really an exclude from install? Scott From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Scott Aron Bloom Sent: Friday, March 20, 2015 16:05 PM To: CMake ML Subject: [CMake] unit tests include in "all" but not install In general, I want unit tests, are build when I do a make all, but I really don't care if they are up to date for a install.. Is that a possibility? Scott
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake