summaryrefslogtreecommitdiffstats
path: root/Tests/CPackNSISGenerator/CMakeLists.txt
diff options
context:
space:
mode:
authorJohnny Jazeix <jazeix@gmail.com>2020-01-02 21:27:31 (GMT)
committerJohnny Jazeix <jazeix@gmail.com>2020-01-02 21:27:31 (GMT)
commitebfffc609e2bfe974a0f56b64285089e7eac4257 (patch)
tree60df1dba2632d514eb1ddee1002ef9e22e9385b0 /Tests/CPackNSISGenerator/CMakeLists.txt
parent77b49149f5fdb9939ffc353996f8b7570e99da4c (diff)
downloadCMake-ebfffc609e2bfe974a0f56b64285089e7eac4257.zip
CMake-ebfffc609e2bfe974a0f56b64285089e7eac4257.tar.gz
CMake-ebfffc609e2bfe974a0f56b64285089e7eac4257.tar.bz2
CPack/NSIS: Add option for setting MUI_HEADERIMAGE_BITMAP
Fixes: #20120
Diffstat (limited to 'Tests/CPackNSISGenerator/CMakeLists.txt')
-rw-r--r--Tests/CPackNSISGenerator/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/CPackNSISGenerator/CMakeLists.txt b/Tests/CPackNSISGenerator/CMakeLists.txt
new file mode 100644
index 0000000..b8b2ed6
--- /dev/null
+++ b/Tests/CPackNSISGenerator/CMakeLists.txt
@@ -0,0 +1,20 @@
+cmake_minimum_required(VERSION 3.16)
+
+project(CPackNSISGenerator)
+
+add_executable(hello main.cpp)
+
+install(TARGETS hello
+ ARCHIVE DESTINATION .
+ RUNTIME DESTINATION .
+ LIBRARY DESTINATION .
+ BUNDLE DESTINATION .)
+
+set(CPACK_NSIS_MUI_HEADERIMAGE "${PROJECT_SOURCE_DIR}\\\\header-image.bmp")
+set(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}\\\\header-icon.bmp")
+set(CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}\\\\install.ico")
+set(CPACK_NSIS_MUI_UNIICON "${PROJECT_SOURCE_DIR}\\\\uninstall.ico")
+set(CPACK_GENERATOR "NSIS")
+set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
+
+include(CPack)