summaryrefslogtreecommitdiffstats
path: root/CMakeCPackOptions.cmake.in
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2014-07-23 07:01:59 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-28 14:24:03 (GMT)
commit44850a267d1c2ee64947ebb93de3998549b59d03 (patch)
tree7e52d6426e9e5ceb152b2b951521098d0b89a6a8 /CMakeCPackOptions.cmake.in
parent3e3ab2adb4a70352a41b469788a2885b20a86fef (diff)
downloadCMake-44850a267d1c2ee64947ebb93de3998549b59d03.zip
CMake-44850a267d1c2ee64947ebb93de3998549b59d03.tar.gz
CMake-44850a267d1c2ee64947ebb93de3998549b59d03.tar.bz2
CPack: Add an "IFW" generator for Qt Framework Installer
Add support for packaging with the Qt Framework Installer tools: http://qt-project.org/doc/qtinstallerframework/index.html Reviewed-by: Nils Gladitz <nilsgladitz@gmail.com>
Diffstat (limited to 'CMakeCPackOptions.cmake.in')
-rw-r--r--CMakeCPackOptions.cmake.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in
index aba404f..135c07d 100644
--- a/CMakeCPackOptions.cmake.in
+++ b/CMakeCPackOptions.cmake.in
@@ -31,6 +31,20 @@ endif()
# they might not if qt was not enabled for the build
include("@QT_DIALOG_CPACK_OPTIONS_FILE@" OPTIONAL)
+if(CPACK_GENERATOR MATCHES "IFW")
+ # Version with QtIFW limitations
+ set(CPACK_PACKAGE_VERSION "@_CPACK_IFW_PACKAGE_VERSION@")
+ # Enable install default component
+ set(CPACK_COMPONENTS_ALL "@_CPACK_IFW_COMPONENT_NAME@")
+ # Configuration
+ set(CPACK_COMPONENT_@_CPACK_IFW_COMPONENT_UNAME@_DISPLAY_NAME "@CPACK_PACKAGE_NAME@")
+ set(CPACK_COMPONENT_@_CPACK_IFW_COMPONENT_UNAME@_DESCRIPTION "@CPACK_PACKAGE_DESCRIPTION_SUMMARY@")
+ # IFW Configuration
+ set(CPACK_IFW_COMPONENT_@_CPACK_IFW_COMPONENT_UNAME@_NAME "@CPACK_PACKAGE_NAME@")
+ set(CPACK_IFW_COMPONENT_@_CPACK_IFW_COMPONENT_UNAME@_LICENSES "@CPACK_PACKAGE_NAME@ Copyright" "@CPACK_RESOURCE_FILE_LICENSE@")
+ @_CPACK_IFW_COMPONENT_SCRIPT@
+endif()
+
if(CPACK_GENERATOR MATCHES "CygwinSource")
# when packaging source make sure the .build directory is not included
set(CPACK_SOURCE_IGNORE_FILES