Use ecm_add_app_icon

parent 56b0087f
......@@ -3,7 +3,7 @@ project( okteta )
cmake_minimum_required(VERSION 2.8.12)
set(QT_MIN_VERSION "5.2.0")
find_package(ECM 1.0.0 REQUIRED NO_MODULE)
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
......@@ -12,6 +12,7 @@ include(ECMInstallIcons)
include(ECMGenerateHeaders)
include(ECMSetupVersion)
include(ECMPackageConfigHelpers)
include(ECMAddAppIcon)
include(FeatureSummary)
include(GenerateExportHeader)
......
......@@ -7,8 +7,9 @@ set( okteta_SRCS
mainwindow.cpp
)
#TODO KF5:
# kde4_add_app_icon(okteta_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-okteta.png")
ecm_add_app_icon(okteta_SRCS
ICONS 16-apps-okteta.png 32-apps-okteta.png 48-apps-okteta.png
)
add_executable( okteta ${okteta_SRCS} )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment