[CMake] unit tests include in "all" but not install

Nils Gladitz nilsgladitz at gmail.com
Sat Mar 21 03:23:25 EDT 2015


On 21.03.2015 00:23, Scott Aron Bloom wrote:
>
> 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?
>

You can remove the "all" dependency from "install" with:
http://www.cmake.org/cmake/help/v3.2/variable/CMAKE_SKIP_INSTALL_ALL_DEPENDENCY.html

But I don't think there is anything to add dependencies back to the 
"install" target.

Nils
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150321/b3bc8fba/attachment.html>


More information about the CMake mailing list