You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
627 B
22 lines
627 B
4 years ago
|
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)
|
||
|
set(CPACK_NSIS_MANIFEST_DPI_AWARE ON)
|
||
|
|
||
|
include(CPack)
|