Re: [cmake-developers] CPack IFW generator
Hi guys! 30.07.2014, 17:15, "Brad King" : > New changes applied here: > > CPackIFW: Document cpack_ifw_configure_component DEPENDS option > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b2340001 > > CPackIFW: Add package configuration variables > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e7511b7f Thank You Brad! The code is now in the branch 'next' so soon it will get to 'master' :-) Regards, Konstantin Podsvirov -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
On 07/29/2014 01:47 PM, Konstantin Podsvirov wrote: > I have some news and changes. > > The source code is now available here: > http://git.podsvirov.pro/?p=kitware/cmake.git New changes applied here: CPackIFW: Document cpack_ifw_configure_component DEPENDS option http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b2340001 CPackIFW: Add package configuration variables http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e7511b7f Thanks, -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
Hello Developers! The topic 'cpack-ifw-generator' now in the branch 'master'. 28.07.2014, 18:58, "Brad King" : > After squashing in one fixup for building with CMake < 2.8.9 > this feature is now in master... This is good news for me and I hope for others. I hope the IFW generator have been users and fans. I have some news and changes. The source code is now available here: http://git.podsvirov.pro/?p=kitware/cmake.git Changes on the subject CPack IFW generator now in the branch 'cpack-ifw-generator'. You can clone code for the study: git clone -b cpack-ifw-generator git://podsvirov.pro/kitware/cmake.git Wish to check the generator in action you can use online-installer for your platform: Linux 32bit: http://ifw.podsvirov.pro/cmake/cmake-ifw-linux-32bit-online.run Linux 64bit: http://ifw.podsvirov.pro/cmake/cmake-ifw-linux-64bit-online.run Windows 32bit: http://ifw.podsvirov.pro/cmake/cmake-ifw-windows-32bit-online.exe Windows 64bit: http://ifw.podsvirov.pro/cmake/cmake-ifw-windows-64bit-online.exe (Unfortunately I don't have a device's Mac OS, and I can't test the code here) Presents online installers install CMake with the latest developments on the topic 'cpack-ifw-generator'. Note that the installer created using CPack IFW gererator and demonstrate his work. Updates go out about once a week. Last update on 28 July: - added some configuration variables for package installation information about the owner and tasks of the logo and icons for the installer. As before the HTML version of the documentation is available here: http://ifw.podsvirov.pro/cmake/doc/cmake-3.0/html Urge to try CPack IFW generator and write your feedback and suggestion to the mailing list or to me personally. Once again, thank Brad for his help in promoting the topic 'cpack-ifw-generator'. (Sorry for my English, I use a translator) Regards, Konstantin Podsvirov -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
On 07/23/2014 04:44 PM, Brad King wrote: > These draft commits are now in 'next' for upstream testing. After squashing in one fixup for building with CMake < 2.8.9 this feature is now in master: CPack: Add an "IFW" generator for Qt Framework Installer http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=44850a26 CPackIFW: Replace use of strftime with cmTimestamp http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=73b336c9 Help: Add notes for topic 'cpack-ifw-generator' http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b9be4d21 -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
On 07/17/2014 03:33 AM, Konstantin Podsvirov wrote: > Now I fixed it. Should work. Thanks for this contribution! I finally made time to look over the changes and integrate them. Overall, very nice work. I squashed your history down to a single commit, fixed newlines, fixed indentation, fixed long lines, and made couple minor portability tweaks. The new draft commit is: CPack: Add an "IFW" generator for Qt Framework Installer http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a9006316 You can compare it to your last commit (3c506bd2) with: git diff 3c506bd2 a9006316 -w --color-words=. to see that there are almost no non-whitespace changes. I also added a slightly larger portability change: CPackIFW: Replace use of strftime with cmTimestamp http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a943d41d but I'm not set up to test it. Please fetch from our repo to try out these versions to make sure I didn't break anything. These draft commits are now in 'next' for upstream testing. Thanks! -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
CPack IFW generator built an online installer itself on Linux! 23.07.2014, 12:39, "Konstantin Podsvirov" : > Update as of July 23, available! The installer for 64-bit versions of Linux are available here: http://ifw.podsvirov.pro/cmake/cmake-master-linux-64bit-online.run Encouraged to test and write your own reviews. As before, I will try to build updates once a week. Regards, Konstantin Podsvirov -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
Update as of July 23, available! 17.07.2014, 12:04, "Konstantin Podsvirov" : > Hello fans of CMake and Windows! > > I want to present the online installer CMake for 32-bit and 64-bit versions > of Windows. > > And immediately the binaries: > > http://ifw.podsvirov.pro/cmake/cmake-master-windows-32bit-online.exe > > http://ifw.podsvirov.pro/cmake/cmake-master-windows-64bit-online.exe > > The installer will install CMake from an online repository and create > shortcuts in the start menu. > The composition of the labels is the same as that of the NSIS installer. If you have already used these installers then just click "Start Menu -> CMake -> Uninstall" , then click "Update components" and click "Next" ... Added new features CPack IFW generator. Now you can specify one or more license file for a group of components or for a particular component. As before the source code is available here: http://git.podsvirov.pro/?p=cmake/cpackifwgenerator.git;a=summary HTML version of the documentation is available here: http://ifw.podsvirov.pro/cmake/doc/cmake-3.0/html Note the documentation of the module CPackIFW: http://ifw.podsvirov.pro/cmake/doc/cmake-3.0/html/module/CPackIFW.html Download the source code and collect it yourself or use installers for Windows or Linux http://ifw.podsvirov.pro/cmake). If there is a need to create an online installers with the possibility of renewal for Linux, then contact me and I will make them. Encouraged to read and test the code and share their comments. My purpose here to CPack IFW generator became a part of the project CMake!!! (Sorry for my English, I use a translator) Regards, Konstantin Podsvirov -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
[cmake-developers] CPack IFW generator
17.07.2014, 12:04, "Konstantin Podsvirov" : > Hello fans of CMake and Windows! > > I want to present the online installer CMake for 32-bit and 64-bit versions > of Windows. All well and good, but the title of the previous writing containing Russian characters. Sorry :-) just Russian is my native language. It was a typo. The installers I presented are test and may contain errors. If you have questions or suggestions, please write to the list or to me personally. Regards, Konstantin Podsvirov -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
[cmake-developers] CPack IFW generator
Hi Nils, and other developers! 15.07.2014, 01:21, "Nils Gladitz" : > Hello again :) > Some stuff that remains from my earlier observations: > - A Lot of commented out code that should be removed. I do this work sometimes > Is Unescaped XML content from CMake variables. Now I use cmXMLSafe in several places > Some other random stuff I noticed: > - CPACK_IFW_BINARYCREATOR_EXECUTABLE_FOUND seems redundant given that > find_program() already encodes this in the cache variable. I think you're right and I'll get rid of this variable in the near future. But as long as the variable is still alive. > - In the CMake coding conventions class members start uppercase. The names of the methods I write with a capital letter, but the property names with a small letter as in the base class cmCpackGenerator. > I tried building a CMake installer with the generator again but it > failed with: > Caught exception: Component version for > '/home/ngladitz/src/git/cpackifwgenerator/build/_CPack_Packages/Linux-x86_64/IFW/cmake-3.0.20140709-gd078a-Linux-x86_64/packages/CMake/meta/package.xml' > is invalid! 3.0.20140709-gd078a Now I fixed it. Should work. Regards -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
On 09.07.2014 19:30, Konstantin Podsvirov wrote: Hello dear developers! And again CPack IFW generator!!! This generator is not part of CMake, but I hope that soon it will become possible. This letter I once again want to awaken interest in the creation of new cross-platform the binary installer is based on Qt Framework Installer tools (http://qt-project.org/doc/qtinstallerframework/index.html) (Sorry for my English. I use a translator) I already appeared here some time ago: http://public.kitware.com/pipermail/cmake-developers/2014-May/010430.html I received some recommendations and considered them. With each commit generator becomes better. As before you can clone the code for the study: git clone git://podsvirov.pro/cmake/cpackifwgenerator.git Or check out the code in your browser: http://git.podsvirov.pro/?p=cmake/cpackifwgenerator.git;a=summary In the Wiki I found an example of creating a binary instalatorow: http://cmake.org/Wiki/CMake:Component_Install_With_CPack My generator also copes with this task. Here's how it looks in Linux and Windows: http://ifw.podsvirov.pro/cmake/cpackifw-componentexample-linux.png http://ifw.podsvirov.pro/cmake/cpackifw-componentexample-windows.png I strive to create the binary installer CMake using a new generator. I already have the achievements. Created installers produce the set of all that was specified in the install(...)but do not create shortcuts. Version of CMake (CPack IFW generator) collected them available for Linux and Windows now: http://ifw.podsvirov.pro/cmake/cmake-3.0.20140709-ifw-linux-i686.run http://ifw.podsvirov.pro/cmake/cmake-3.0.20140709-ifw-windows-x64.exe http://ifw.podsvirov.pro/cmake/cmake-3.0.20140709-ifw-windows-x86.exe Please test these installers and write your comments. Hello again :) Some stuff that remains from my earlier observations: - Lot of commented out code that should be removed. - Unescaped XML content from CMake variables. Some other random stuff I noticed: - CPACK_IFW_BINARYCREATOR_EXECUTABLE_FOUND seems redundant given that find_program() already encodes this in the cache variable. - In the CMake coding conventions class members start upper case. I tried building a CMake installer with the generator again but it failed with: Caught exception: Component version for '/home/ngladitz/src/git/cpackifwgenerator/build/_CPack_Packages/Linux-x86_64/IFW/cmake-3.0.20140709-gd078a-Linux-x86_64/packages/CMake/meta/package.xml' is invalid! 3.0.20140709-gd078a Nils -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
[cmake-developers] CPack IFW generator
Hello dear developers! And again CPack IFW generator!!! This generator is not part of CMake, but I hope that soon it will become possible. This letter I once again want to awaken interest in the creation of new cross-platform the binary installer is based on Qt Framework Installer tools (http://qt-project.org/doc/qtinstallerframework/index.html) (Sorry for my English. I use a translator) I already appeared here some time ago: http://public.kitware.com/pipermail/cmake-developers/2014-May/010430.html I received some recommendations and considered them. With each commit generator becomes better. As before you can clone the code for the study: git clone git://podsvirov.pro/cmake/cpackifwgenerator.git Or check out the code in your browser: http://git.podsvirov.pro/?p=cmake/cpackifwgenerator.git;a=summary In the Wiki I found an example of creating a binary instalatorow: http://cmake.org/Wiki/CMake:Component_Install_With_CPack My generator also copes with this task. Here's how it looks in Linux and Windows: http://ifw.podsvirov.pro/cmake/cpackifw-componentexample-linux.png http://ifw.podsvirov.pro/cmake/cpackifw-componentexample-windows.png I strive to create the binary installer CMake using a new generator. I already have the achievements. Created installers produce the set of all that was specified in the install(...)but do not create shortcuts. Version of CMake (CPack IFW generator) collected them available for Linux and Windows now: http://ifw.podsvirov.pro/cmake/cmake-3.0.20140709-ifw-linux-i686.run http://ifw.podsvirov.pro/cmake/cmake-3.0.20140709-ifw-windows-x64.exe http://ifw.podsvirov.pro/cmake/cmake-3.0.20140709-ifw-windows-x86.exe Please test these installers and write your comments. It is not excluded that in the folder http://ifw.podsvirov.pro/cmake may be something useful. I've created accounts Mantis and CDash. Git push access to g...@cmake.org:cmake.git I do not have. With respect Konstantin Podsvirov -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
Thank you Brad ! Apologies for the delay in response, but these two weeks I fished and not programmed . As I said, I'm new to developing CMake. Thank you for making the patch , but I do not know what to do with it . Your comments are very valuable for me. I will try to use them in the future development of the generator. I understand that my project is not yet ready for release. I will make changes in my local repository (git :/ / podsvirov.pro / cmake / cpackifwgenerator.git ) When the code is stable , I want to make it available to the entire community. As always , I apologize for my bad English . 12.05.2014, 18:32, "Brad King" : > On 05/08/2014 03:14 AM, Konstantin Podsvirov wrote: > >> Qt is distributed with of his Qt Installer Framework (QtIFW). > > For reference, here is a link: > > http://qt-project.org/wiki/Qt-Installer-Framework > >> I decided to make friends CMake and QtIFW. >> >> I added CPack IFW generator and module FindIFW.cmake. > > Thanks for working on this. > >> You can copy the code and test it: >> >> git clone git://podsvirov.pro/cmake/cpackifwgenerator.git > > For reference, I constructed a patch with the net change from > your topic. I revised some whitespace too. See attachment. > > I'd appreciate comments from others on this mailing list that > have worked on developing CPack generators. Also, I'm not > familiar with IFW so I can only comment on this from the > CMake/CPack side. > > The patch adds a FindIFW module and has CPack use it to find > the packaging tools and add macro cpack_configure_ifw_component. > In general find modules may not run reliably outside of a > find_package() call in project CMake code (e.g. CMakeLists.txt) > because no information about the host or target platform is > available otherwise. Normally CPack generators have their own > logic for finding the packaging tools. The location should > not be needed outside of CPack. A separate module like > CPackIFW could be used to provide the macro. We should not > need a FindIFW module at all. > > -Brad Regards -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
On 05/12/2014 04:33 PM, Brad King wrote: I'd appreciate comments from others on this mailing list that have worked on developing CPack generators. Also, I'm not familiar with IFW so I can only comment on this from the CMake/CPack side. I am not familiar with IFW either but ... Some minor superficial stuff: - The NSIS specific comments should be removed - IFW_OPT seems to be unused and could be removed(?) - There is a lot of uncommented code that should be removed - The check that determines if IFW_BINARYCREATOR_EXECUTABLE was found doesn't work since it is set to "IFW_BINARYCREATOR_EXECUTABLE-NOTFOUND" rather than empty (I think I have to reevaluate that in the WIX Generator as well). IsOn() should work. - "Crator" -> "Creator" - Line lengths and braces don't match the coding conventions everywhere yet - Some of the XML content looks like it might require escaping e.g. in: "" << ifwPkgName << "" with cmXMLSafe(ifwPkgName) I created an installer for CMake itself (on linux) where I noticed: - Default install prefix is "/CMake"; I expected a default prefix of /usr/local - There is a component selection dialog even though components don't seem to be supported by the generator yet. Could it be omitted? - In the "Show Details" summary I get: Selected Component(s) without Dependencies root Could/should "root" be replaced with the content of CPACK_PACKAGE_NAME? Nils -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] CPack IFW generator
On 05/08/2014 03:14 AM, Konstantin Podsvirov wrote: > Qt is distributed with of his Qt Installer Framework (QtIFW). For reference, here is a link: http://qt-project.org/wiki/Qt-Installer-Framework > I decided to make friends CMake and QtIFW. > > I added CPack IFW generator and module FindIFW.cmake. Thanks for working on this. > You can copy the code and test it: > > git clone git://podsvirov.pro/cmake/cpackifwgenerator.git For reference, I constructed a patch with the net change from your topic. I revised some whitespace too. See attachment. I'd appreciate comments from others on this mailing list that have worked on developing CPack generators. Also, I'm not familiar with IFW so I can only comment on this from the CMake/CPack side. The patch adds a FindIFW module and has CPack use it to find the packaging tools and add macro cpack_configure_ifw_component. In general find modules may not run reliably outside of a find_package() call in project CMake code (e.g. CMakeLists.txt) because no information about the host or target platform is available otherwise. Normally CPack generators have their own logic for finding the packaging tools. The location should not be needed outside of CPack. A separate module like CPackIFW could be used to provide the macro. We should not need a FindIFW module at all. -Brad >From af34b92edb7712ffe5c4fff582e3f40dce67defc Mon Sep 17 00:00:00 2001 Message-Id: From: Konstantin Podsvirov Date: Thu, 8 May 2014 10:22:51 +0400 Subject: [PATCH] CPack: Add IFW generator --- Help/manual/cmake-modules.7.rst | 1 + Help/module/FindIFW.rst | 1 + Modules/CPackComponent.cmake | 3 + Modules/FindIFW.cmake| 165 + Source/CMakeLists.txt| 1 + Source/CPack/cmCPackGeneratorFactory.cxx | 6 + Source/CPack/cmCPackIFWGenerator.cxx | 568 +++ Source/CPack/cmCPackIFWGenerator.h | 72 8 files changed, 817 insertions(+) create mode 100644 Help/module/FindIFW.rst create mode 100644 Modules/FindIFW.cmake create mode 100644 Source/CPack/cmCPackIFWGenerator.cxx create mode 100644 Source/CPack/cmCPackIFWGenerator.h diff --git a/Help/manual/cmake-modules.7.rst b/Help/manual/cmake-modules.7.rst index 2bbe622..0d97233 100644 --- a/Help/manual/cmake-modules.7.rst +++ b/Help/manual/cmake-modules.7.rst @@ -114,6 +114,7 @@ All Modules /module/FindHSPELL /module/FindHTMLHelp /module/FindIcotool + /module/FindIFW /module/FindImageMagick /module/FindITK /module/FindJasper diff --git a/Help/module/FindIFW.rst b/Help/module/FindIFW.rst new file mode 100644 index 000..5188cd2 --- /dev/null +++ b/Help/module/FindIFW.rst @@ -0,0 +1 @@ +.. cmake-module:: ../../Modules/FindIFW.cmake diff --git a/Modules/CPackComponent.cmake b/Modules/CPackComponent.cmake index 1433d9e..5524a3f 100644 --- a/Modules/CPackComponent.cmake +++ b/Modules/CPackComponent.cmake @@ -458,6 +458,9 @@ macro(cpack_add_component_group grpname) cpack_append_string_variable_set_command( CPACK_COMPONENT_GROUP_${CPACK_ADDGRP_UNAME}_DESCRIPTION CPACK_ADDGRP_STR) + cpack_append_string_variable_set_command( +CPACK_COMPONENT_GROUP_${CPACK_ADDGRP_UNAME}_PARENT_GROUP +CPACK_ADDGRP_STR) cpack_append_option_set_command( CPACK_COMPONENT_GROUP_${CPACK_ADDGRP_UNAME}_EXPANDED CPACK_ADDGRP_STR) diff --git a/Modules/FindIFW.cmake b/Modules/FindIFW.cmake new file mode 100644 index 000..edcede1 --- /dev/null +++ b/Modules/FindIFW.cmake @@ -0,0 +1,165 @@ +#.rst: +# FindIFW +# --- +# +# This module looks for the location of the command line utilities supplied with +# the Qt Installer Framework (QtIFW_). +# +# .. _QtIFW: http://qt-project.org/doc/qtinstallerframework-1.5/index.html +# +# The module also defines several commands to control the behavior of the +# CPack IFW generator. +# +# Variables +# ^ +# +# The module defines the following variables: +# +# :: +# +#IFW_BINARYCREATOR_EXECUTABLE - path to binarycreator command line client +#IFW_REPOGEN_EXECUTABLE - path to repogen command line client +#IFW_FOUND - true if the binarycreator command line client was found +# +# Commands +# ^ +# +# The module defines the following commands: +# +# .. command:: cpack_configure_ifw_component +# +# Sets the arguments specific to the CPack IFW generator. +# +# :: +# +# cpack_configure_ifw_component(compname +# [VERSION version] +# [SCRIPT script]) +# +# This command should be called after cpack_add_component command. +# +# VERSION is version of component. +# +# SCRIPT is relative or absolute path to operations script +# for this component. +# +# Example usage +# ^ +# +# :: +# +#set(CPACK_PACKAGE_NAME "MyPackage") +#set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MyPackage Installation Example") +#set(CPACK_PACKAGE_VERSION "1.0.0") +# +#include(CPack) +#find_
[cmake-developers] CPack IFW generator
Hi CMake developers! I'm a newbie here. I like CMake and Qt. Qt is distributed with of his Qt Installer Framework (QtIFW). I decided to make friends CMake and QtIFW. I added CPack IFW generator and module FindIFW.cmake. You can copy the code and test it: git clone git://podsvirov.pro/cmake/cpackifwgenerator.git Also available preview: http://git.podsvirov.pro/?p=cmake/cpackifwgenerator.git;a=summary My code is still draft, but already knows how to create good installer based on the components. I want you to porobovali this and said their opinion. If the code you like, I'll try to support it. I'm sorry for my english. -- Regards Konstantin Podsvirov-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers