summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-05-01 14:04:56 -0400
committerLouie S <louie@example.com>2024-05-01 14:04:56 -0400
commitd89592488cf06157c2197f964878ecdef637e008 (patch)
tree37211ca9257b17a8a393bf4f2f4d882cd5a5ef2f
parent444342d141111a47937496bfb3dee2589b57ae94 (diff)
Set NSIS installer icon
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6af8fb9..95ec0b2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,6 +149,9 @@ set(CPACK_SOURCE_IGNORE_FILES "/\.git.*;/\.cache;/build;/compile_commands\.json$
# CPack NSIS configuration
# Allow regular users to run installer
set(CPACK_NSIS_DEFINES "RequestExecutionLevel user")
+# Set installer icons
+set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/data/assignment-list.ico")
+set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/data/assignment-list.ico")
# Install a StartMenu Shortcut
set(CPACK_NSIS_CREATE_ICONS_EXTRA
"CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\${PROJECT_TITLE}.lnk' '$INSTDIR\\\\assignment-list.exe'"