From bdd178d0f2a828ee56879bdf8e975ff51f2364c3 Mon Sep 17 00:00:00 2001
From: Shaun Reed <shaunrd0@gmail.com>
Date: Fri, 14 Mar 2025 15:31:00 -0400
Subject: [PATCH] Add windows changes.

---
 src/CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4d3de10..177d4ff 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -168,6 +168,8 @@ endif()
 
 
 # Windows
+# Set icon for the splash image used in Windows NSIS installers.
+set(CPACK_PACKAGE_ICON "${QTK_RESOURCES}/icons/win/kilroy_splash.bmp")
 set(CPACK_NSIS_MODIFY_PATH ON)
 set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
 # https://nsis.sourceforge.io/Reference/CreateShortCut
@@ -180,6 +182,11 @@ set(
     "Delete '$SMPROGRAMS\\\\$START_MENU\\\\Qtk.lnk'"
 )
 
+# Set icon for the installer executable.
+set(CPACK_NSIS_MUI_ICON "${QTK_RESOURCES}/icons/win/kilroy.ico")
+# Set icon for uninstaller executable.
+set(CPACK_NSIS_MUI_UNIICON "${QTK_RESOURCES}/icons/win/kilroy.ico")
+
 if(WIN32)
   set(CPACK_SOURCE_GENERATOR ZIP)
 else()