[CMake] Sub components with CPack and NSIS

NoRulez norulez at me.com
Tue Mar 8 17:16:37 EST 2011


I tried the following, but it doesn't work.
It creates only one group and the display name isn't the value which is set
with DISPLAY_NAME:

CPACK_ADD_COMPONENT_GROUP(BaseGroup DISPLAY_NAME "Name Of Base Group")
CPACK_ADD_COMPONENT_GROUP(SubGroup DISPLAY_NAME "Name Of Sub Group"
PARENT_GROUP BaseGroup)
CPACK_ADD_COMPONENT(Item1 DISPLAY_NAME "Name Of Item 1" GROUP SubGroup)
CPACK_ADD_COMPONENT(Item1 DISPLAY_NAME "Name Of Item 2" GROUP SubGroup)
CPACK_ADD_COMPONENT(Item1 DISPLAY_NAME "Name Of Item 3" GROUP SubGroup)

The following will be created:
SubGroup (should be "Name Of Sub Group")
   |
   +--- Name Of Item 1
   +--- Name Of Item 2
   +--- Name Of Item 3

Maybe I do something wrong or is this a bug?

Best Regards

-----Ursprüngliche Nachricht-----
Von: Eric Noulard [mailto:eric.noulard at gmail.com] 
Gesendet: Dienstag, 08. März 2011 21:53
An: NoRulez
Cc: CMake MailingList
Betreff: Re: [CMake] Sub components with CPack and NSIS

2011/3/8 NoRulez <norulez at me.com>:
> Ok,
>
> I mean a parent group instead of sub component.
> But i doesn't find any documentations about this too.

look in CPack.cmake
or

cmake --help-module CPack

> If it isn't implemented in CPack, can i mix cpack and nsis scripts, and if
so how?

CPack is using a NSIS template file:

/usr/share/cmake-2.8/Modules/NSIS.template.in
(and there is
 /usr/share/cmake-2.8/Modules/NSIS.InstallOptions.ini.in too)

may be you can do some more NSIS scripting in a custom
NSIS.template.in file.

search the ML archive.
You'll find explanation on how to use a custom NSIS template with CPack.


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



More information about the CMake mailing list