[CMake] Component specific installation

Doug Gregor doug.gregor at gmail.com
Mon Jun 30 12:24:26 EDT 2008


On Mon, Jun 30, 2008 at 11:50 AM, Shead, Timothy <tshead at sandia.gov> wrote:
> On 6/27/08 8:58 PM, "Daniel Stonier" <d.stonier at gmail.com> wrote:
>
>> How do you actually trigger component specific installations though?
>> I've currently got a 'headers' component. On a normal cmake with unix
>> makefiles, there's a makefile target for
>>
>> make list_all_components
>>
>> but no way of actually installing the components. The install still
>> installs everything.
>
> The "make install" and "make package" targets are there to handle the most
> common scenario, which is "install everything".  If you want to control
> components or build-type, you have to call cmake/cpack yourself, with the
> correct command-line arguments.

There is some new support in CMake CVS for component-specific
installations in the Windows (NSIS) and Mac OS X (PackageMaker)
installers generated by CPack. See

  http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack

for more information.

  - Doug


More information about the CMake mailing list