summaryrefslogtreecommitdiffstats
path: root/Source/QtIFW
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 /Source/QtIFW
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 'Source/QtIFW')
-rw-r--r--Source/QtIFW/cmake.org.html7
-rw-r--r--Source/QtIFW/installscript.qs.in24
2 files changed, 31 insertions, 0 deletions
diff --git a/Source/QtIFW/cmake.org.html b/Source/QtIFW/cmake.org.html
new file mode 100644
index 0000000..cf5649d
--- /dev/null
+++ b/Source/QtIFW/cmake.org.html
@@ -0,0 +1,7 @@
+<html>
+<head>
+<meta http-equiv="Refresh" content="0; url=http://cmake.org/" />
+</head>
+<body>
+</body>
+</html>
diff --git a/Source/QtIFW/installscript.qs.in b/Source/QtIFW/installscript.qs.in
new file mode 100644
index 0000000..5491611
--- /dev/null
+++ b/Source/QtIFW/installscript.qs.in
@@ -0,0 +1,24 @@
+function Component()
+{
+ // default constructor
+}
+
+Component.prototype.createOperations = function()
+{
+ // call default implementation to actually install applications!
+ component.createOperations();
+
+ // Create shortcut
+ if (installer.value("os") === "win") {
+
+@_CPACK_IFW_SHORTCUT_OPTIONAL@
+
+ component.addOperation("CreateShortcut",
+ installer.value("TargetDir") + "/cmake.org.html",
+ installer.value("StartMenuDir") + "/CMake Web Site.lnk");
+
+ component.addOperation("CreateShortcut",
+ installer.value("TargetDir") + "/uninstall.exe",
+ installer.value("StartMenuDir") + "/Uninstall.lnk");
+ }
+}