Add app icon for Windows

This commit is contained in:
Nicolas Fella
2021-01-27 14:49:25 +01:00
parent d9cf7ce552
commit 9603811a6d
3 changed files with 5 additions and 0 deletions

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -19,6 +19,7 @@ include(ECMQMLModules)
include(KDEClangFormat)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddAppIcon)
if(NEOCHAT_FLATPAK)
include(cmake/Flatpak.cmake)

View File

@@ -22,6 +22,10 @@ add_executable(neochat
../res.qrc
)
ecm_add_app_icon(NEOCHAT_ICON ICONS ${CMAKE_SOURCE_DIR}/128-logo.png)
target_sources(neochat PRIVATE ${NEOCHAT_ICON})
if(NOT ANDROID)
target_sources(neochat PRIVATE trayicon.cpp)
endif()