[CMake] make install for target AND its dependencies

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jul 24 13:59:22 EDT 2013


On Wednesday 24 July 2013, Tamino Dauth wrote:
> Hi there,
> 
> for a project I am working on I need to install single targets WITH
> their and ONLY their dependencies.
> 
> Installing single targets does work so far by changing into the
> directory of the targets CMakeLists.txt and running "make install".
> Unfortunately, it only installs the one target and doesn't move/relink
> its dependency targets.
> 
> I want to avoid installing ALL targets of the project, so the one target
> can be tested without compiling the whole project.

Something like this ?
http://public.kitware.com/Bug/view.php?id=4266

Alex


More information about the CMake mailing list