mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Instead of mutating `CMAKE_INSTALL_PREFIX`, add a `CMake.app/Contents/` prefix to install destinations besides the `cmake-gui` target itself.
22 lines
491 B
Plaintext
22 lines
491 B
Plaintext
// Component: CMake.Dialogs.QtGUI
|
|
|
|
function Component()
|
|
{
|
|
// Default constructor
|
|
}
|
|
|
|
Component.prototype.createOperations = function()
|
|
{
|
|
// Create shortcut
|
|
if (installer.value("os") === "win") {
|
|
|
|
component.addOperation("CreateShortcut",
|
|
"@TargetDir@/%CMake_INSTALL_BIN_DIR%/cmake-gui.exe",
|
|
"@StartMenuDir@/CMake (cmake-gui).lnk");
|
|
|
|
}
|
|
|
|
// Call default implementation
|
|
component.createOperations();
|
|
}
|