File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,8 @@ if(WIN32)
205205 set (CPACK_PACKAGE_INSTALL_DIRECTORY "Cadabra" )
206206 set (CPACK_NSIS_MODIFY_PATH ON )
207207 set (CPACK_NSIS_EXECUTABLES_DIRECTORY .)
208+ set (CPACK_NSIS_URL_INFO_ABOUT "https://cadabra.science/" )
209+ set (CPACK_NSIS_CONTACT
"Kasper Peeters <[email protected] >" )
208210endif ()
209211
210212# Ensure that on Windows we also install the libraries provided
Original file line number Diff line number Diff line change @@ -277,6 +277,19 @@ if (NOT INSTALL_TARGETS_ONLY)
277277 file(INSTALL ${WINGDK} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
278278 ]])
279279 # 1install_dlls_from("frontend/gtkmm")
280+
281+ # Logic to get a start menu icon.
282+ set (TARGET_EXECUTABLE "cadabra2-gtk" )
283+ install (CODE [[
284+ file(WRITE "${CMAKE_INSTALL_PREFIX}/CreateShortcuts.nsh" "
285+ CreateShortCut \"$SMPROGRAMS\\$STARTMENU_FOLDER\\YourApp.lnk\" \"$INSTDIR\\${TARGET_EXECUTABLE}.exe\"
286+ CreateShortCut \"$DESKTOP\\Cadabra.lnk\" \"$INSTDIR\\${TARGET_EXECUTABLE}.exe\"
287+ ")
288+ ]])
289+ set (CPACK_NSIS_CREATE_ICONS_EXTRA "ReadINIStr \$ STARTMENU_FOLDER \$ INSTDIR\\\\ CreateShortcuts.nsh" )
290+ set (CPACK_PACKAGE_EXECUTABLES "cadabra2-gtk" "Cadabra2" )
291+ set (CPACK_NSIS_MENU_LINKS "cadabra2-gtk" "Cadabra2.lnk" )
292+ set (CPACK_NSIS_CREATE_ICONS_EXTRA "ReadINIStr \$ STARTMENU_FOLDER \$ INSTDIR\\\\ CreateShortcuts.nsh" )
280293 endif ()
281294endif ()
282295
You can’t perform that action at this time.
0 commit comments