[cmake-developers] [CMake] Support for multiple components in cpack

Eric Noulard eric.noulard at gmail.com
Fri Aug 6 20:14:07 EDT 2010


2010/8/6 Alexander Neundorf <neundorf at kde.org>:
> On Friday 06 August 2010, Eric Noulard wrote:
>> 2010/8/6 Alexander Neundorf <neundorf at kde.org>:
>> > On Friday 06 August 2010, Eric Noulard wrote:
>> > ...
>> >
>> >> I think I missed the fact that you did not used component GROUPS
>> >> at all in the first place :-)
>> >
>> > Sorry I didn't follow closely...
>> > What is this GROUPS thing about ?
>>
>> see this:
>> http://www.vtk.org/Wiki/CMake:Component_Install_With_CPack#Grouping_Compone
>>nts
>
> Thanks, cool :-)
>
> What would you think about a macro like
>
> cpack_set_component_properties(<component> PROPERTIES
>                                           [DESCRIPTION "Cool stuff"]
>                                           [DISPLAY_NAME "HelloWorld"]
>                                           [DEPENDS value1;value2]
>                                           ...
>                              )
>
> I think I could come up with a patch which does that and put that into a
> UseCPack.cmake or CPackMacros.cmake file.

Alex,

I'm lost :-)
Why would be the purpose of such macro?
Avoid the multiple
CPACK_COMPONENT_${COMPNAME}_XXX  var definitions ?

I think there is already what we need in CPack.cmake with the
cpack_add_component
and
cpack_add_component_group
macros.

They do not appear to be used in the example on the Wiki but they do exists.

Now even with the use of existing macros, some open issues
remains on how to package a set of components or component groups.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



More information about the cmake-developers mailing list