Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
0003b7b5
Commit
0003b7b5
authored
Mar 07, 2013
by
Julien Malik
Browse files
ENH: add icon to the start menu shortcut
parent
aa1604ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Packaging/Windows/CMakeLists.txt
View file @
0003b7b5
...
...
@@ -5,6 +5,22 @@ set(CPACK_NSIS_MODIFY_PATH ON PARENT_SCOPE)
set
(
CPACK_NSIS_MENU_LINKS
"bin/monteverdi2.bat"
"Monteverdi2"
PARENT_SCOPE
)
# Since we put a bat file as MENU_LINKS, it does not get an icon automatically
# though NSIS can do that.
# That's why we use the following hack to associate the icon coming from the executable
# to the bat file :
set
(
CPACK_NSIS_EXTRA_INSTALL_COMMANDS
"
CreateShortCut
\\\"
$SMPROGRAMS
\\\\
Monteverdi2-
${
Monteverdi2_VERSION_MAJOR
}
.
${
Monteverdi2_VERSION_MINOR
}
\\\\
Monteverdi2.lnk
\\\"
\\\"
$INSTDIR
\\\\
bin
\\\\
monteverdi2.bat
\\\"
\\\"
\\\"
\\\"
$INSTDIR
\\\\
bin
\\\\
monteverdi2.exe
\\\"
"
PARENT_SCOPE
)
set
(
CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
"
Delete
\\\"
$SMPROGRAMS
\\\\
Monteverdi2-
${
Monteverdi2_VERSION_MAJOR
}
.
${
Monteverdi2_VERSION_MINOR
}
\\\\
Monteverdi2.lnk
\\\"
"
PARENT_SCOPE
)
# Icon for the add-remove program
set
(
CPACK_NSIS_INSTALLED_ICON_NAME
"bin
\\\\
monteverdi2.exe"
PARENT_SCOPE
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment