summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-03-19 09:19:18 +0100
committerMontel Laurent <[email protected]>2015-03-19 09:19:18 +0100
commitc0a7a2260bda492189f8eeeca89cfae322ba9622 (patch)
treec93ce9ab8fa8a4f4cdb0fef28ad847b6b452e1bd
parentaaef189a562904c63035dc0cbe093590a8055a87 (diff)
use icon on windows/macos
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/CMakeLists.txt4
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01d7337..4057114 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,6 +25,7 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(ECMInstallIcons)
+include(ECMAddAppIcon)
find_package(KF5 REQUIRED COMPONENTS
I18n
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8b5d8d2..77d1c94 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -20,6 +20,10 @@ ki18n_wrap_ui(kanagram_SRCS
mainsettingswidget.ui
)
+file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-kanagram.png")
+ecm_add_app_icon(cantor_SRCS ICONS ${ICONS_SRCS})
+
+
kconfig_add_kcfg_files(kanagram_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/kanagramsettings.kcfgc)
add_executable(kanagram ${kanagram_SRCS})