diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2015-07-03 12:58:22 +0300 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-07 09:16:40 -0400 |
commit | c823f04e0cbc4753cc5b6d5c9f45b9f015a12568 (patch) | |
tree | 4edbd2e75f2c40e2884930e203dffa170864dcb6 /Source/QtIFW | |
parent | 7383e4d722809e2460bd4e87ea7fdbef5f64c303 (diff) | |
download | cmake-c823f04e0cbc4753cc5b6d5c9f45b9f015a12568.tar.gz |
CMake: New option CMake_INSTALL_COMPONENTS
By default is OFF.
Now it's used with CPack IFW himself installer.
Diffstat (limited to 'Source/QtIFW')
-rw-r--r-- | Source/QtIFW/installscript.qs.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/QtIFW/installscript.qs.in b/Source/QtIFW/installscript.qs.in new file mode 100644 index 0000000000..570dba1e0b --- /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") + "/cmake-maintenance.exe", + installer.value("StartMenuDir") + "/CMake Maintenance Tool.lnk"); + } +} |