link icon for windows

This commit is contained in:
Martin Brodbeck 2018-08-09 14:14:25 +02:00
parent 0a1d946397
commit a3d95101b3
3 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,7 @@ set(CPACK_PACKAGE_EXECUTABLES "kima2" "KIMA2")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ein kleines Kassenprogramm für Kindersachenmärkte")
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/misc\\\\kima2.bmp")
set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/misc\\\\kima2.ico")
set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\kima2.exe")
#set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\kima2.exe")
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})

View file

@ -30,7 +30,7 @@ set(GUI_SOURCES
../../kima2.qrc
)
add_executable(kima2 ${GUI_SOURCES})
add_executable(kima2 ${GUI_SOURCES} kima2.rc)
target_include_directories(kima2 PRIVATE ${PROJECT_BINARY_DIR})
target_link_libraries(kima2 core printer Qt5::Widgets Qt5::PrintSupport stdc++fs)
if(WIN32)

1
src/gui/kima2.rc Normal file
View file

@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "../../misc/kima2.ico"