[CMake] Install selected|group of targets

Michael Wild themiwi at gmail.com
Thu Feb 2 03:42:22 EST 2012


On 02/02/2012 08:44 AM, Joakim Hove wrote:
> 
> 
>     First you should use the COMPONENT parameter of the INSTALL command.
>     See:
>     cmake --help-command install
>     and
>     http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack
> 
>     then you may install all the target/files/... belonging to a
>     particular component by doing:
> 
>     cd buildir
>     cmake -DCOMPONENT="componentname" -P cmake_install.cmake
> 
>     <http://www.april.org> 
> 
> 
> OK;
> 
> thank you. That was maybe slightly more involved than I had thougth -
> but certainly doable.
> 
> Joakim
> 
> 

I implemented the "make install-foo" feature some time ago, but didn't
find the time to write the required tests, so it never got merged into
CMake:

http://cmake.org/Bug/view.php?id=10531

Michael


More information about the CMake mailing list