Re: [CMake] Sub components with CPack and NSIS
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.noul...@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 : > 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 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Sub components with CPack and NSIS
2011/3/8 NoRulez : > 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 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Sub components with CPack and NSIS
Ok, I mean a parent group instead of sub component. But i doesn't find any documentations about this too. If it isn't implemented in CPack, can i mix cpack and nsis scripts, and if so how? Best Regards Am 08.03.2011 um 21:36 schrieb Eric Noulard : > 2011/3/8 NoRulez : >> Hello everyone, >> >> is there a way to generate sub and sub sub components with CPack and Nsis? > > Yes theoretically there is. > But I never tried. > >> I would like to have the following structure, but I couldn’t figure out how >> to do this: >> >> Component >> | >> + Sub Component 1 >> + Sub Component 2 >> | >> + Sub Sub Component 1 >> | >> + Sub Component 3 >> | >> Component 2 > > There is no such thing as "sub-component" with CPack you > define components and then you "group" them inside "Component Groups". > > Have a look at the rule for component packaging > http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Principles_of_CPack_Component_Packaging > > you'll see that a group may have a "PARENT_GROUP". > > However this has been written from what is written in "CPack.cmake" > documentation header > and I'm not sure that the "PARENT_GROUP" has been implemented or used. > > > -- > Erk > Membre de l'April - « promouvoir et défendre le logiciel libre » - > http://www.april.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Sub components with CPack and NSIS
2011/3/8 NoRulez : > Hello everyone, > > is there a way to generate sub and sub sub components with CPack and Nsis? Yes theoretically there is. But I never tried. > I would like to have the following structure, but I couldn’t figure out how > to do this: > > Component > | > + Sub Component 1 > + Sub Component 2 > | > + Sub Sub Component 1 > | > + Sub Component 3 > | > Component 2 There is no such thing as "sub-component" with CPack you define components and then you "group" them inside "Component Groups". Have a look at the rule for component packaging http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Principles_of_CPack_Component_Packaging you'll see that a group may have a "PARENT_GROUP". However this has been written from what is written in "CPack.cmake" documentation header and I'm not sure that the "PARENT_GROUP" has been implemented or used. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Sub components with CPack and NSIS
> Hello everyone, > > > > is there a way to generate sub and sub sub components with CPack and Nsis? > > I would like to have the following structure, but I couldn’t figure out how > to do this: > > > > Component > > | > > + Sub Component 1 > > + Sub Component 2 > > | > > + Sub Sub Component 1 > > | > > + Sub Component 3 > > | > > Component 2 > > | > > > > > > > > Thanks in advance > > > > Best Regards > > NoRulez ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Sub components with CPack and NSIS
Hello everyone, is there a way to generate sub and sub sub components with CPack and Nsis? I would like to have the following structure, but I couldnt figure out how to do this: Component | + Sub Component 1 + Sub Component 2 | + Sub Sub Component 1 | + Sub Component 3 | Component 2 | Thanks in advance Best Regards NoRulez ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake