[cmake-developers] CPack IFW generator

Brad King brad.king at kitware.com
Mon May 12 10:33:21 EDT 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CPack-Add-IFW-generator.patch
Type: text/x-diff
Size: 30824 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140512/a2c8fe0c/attachment-0002.patch>


More information about the cmake-developers mailing list