CMake/Source/QtIFW/installscript.qs.in
Konstantin Podsvirov 4971799360 QtIFW: Improved packaging
Now cpack_ifw_configure_file command used to configure
template files of component's scripts.

Now for these template files we can use QtIFW predefined
variables (like @VAR@) and template variables
in Qt/IFW/SDK/Creator templates style (like %VAR%).

Now CMake_INSTALL_INFIX advanced variable used to configure
CMake installation destination when package as part of QtSDK.
2017-01-12 19:29:52 +03:00

28 lines
785 B
Plaintext

// Component: CMake
function Component()
{
// Do not show component selection page
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
}
Component.prototype.createOperations = function()
{
// Create shortcut
if (installer.value("os") === "win") {
%_CPACK_IFW_SHORTCUT_OPTIONAL%
component.addOperation("CreateShortcut",
"@TargetDir@/%CMAKE_DOC_DIR%/cmake.org.html",
"@StartMenuDir@/CMake Web Site.lnk");
component.addOperation("CreateShortcut",
"@TargetDir@/cmake-maintenance.exe",
"@StartMenuDir@/CMake Maintenance Tool.lnk");
}
// Call default implementation
component.createOperations();
}