[CMake] Component group specific installation with Makefile

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 6 14:57:09 EDT 2008


On Wednesday 06 August 2008, Yann Cointepas wrote:
> Hi,
>
> Is there a way to define component group (or installation type)
> specific installation targets in a Makefile ?
>
> I work on Linux. I have defined three CPack component groups (and/or
> installation types) for my project: runtime, devel and doc and I would
> like to be able to install all components of each group separately
> (for example with make install_doc). I only found a way to install a
> single component (not a component group) by defining
> CPACK_INSTALL_CMAKE_PROJECTS variable in CMakeLists.txt.

I think you have to call the install script directly, e.g.:
$ cmake -DCOMPONENT=doc -P cmake_install.cmake

Alex


More information about the CMake mailing list