[CMake] INSTALL component name as a target?

Alexander Neundorf a.neundorf-work at gmx.net
Fri Jul 27 13:58:32 EDT 2007


On Friday 27 July 2007 13:22, Christian Convey wrote:
> I'm using INSTALL(...)'s COMPONENT parameter to specify various
> subsets of files that should be installed in different circumstances.
>
> Suppose I have an install component named Foo.
>
> Is there an easy way I can express a dependency, within CMake, on all
> of the files that would be installed for component Foo?

Nothing built in. Using add_custom_target() you could create a custom target, 
and using add_dependencies() you could add all targets which belong to this 
component as dependency to this target.

Bye
Alex

P.S. the deb generator will be in 2.6.0, which should be released still this 
year


More information about the CMake mailing list