diff --git a/kcachegrind/CMakeLists.txt b/kcachegrind/CMakeLists.txt index d97b8da..dac125c 100644 --- a/kcachegrind/CMakeLists.txt +++ b/kcachegrind/CMakeLists.txt @@ -1,45 +1,55 @@ ########### next target ############### set(kcachegrind_SRCS main.cpp kdeconfig.cpp toplevel.cpp configdlg.cpp ${kcachegrind_QM_LOADER} ) ki18n_wrap_ui(kcachegrind_SRCS configdlgbase.ui dumpselectionbase.ui) qt5_add_resources(kcachegrind_SRCS kcachegrind.qrc ) -file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*-apps-kcachegrind.png") -ecm_add_app_icon(kcachegrind_SRCS ICONS ${ICONS_SRCS}) +set(kcachegrind_ICONS + 32-apps-kcachegrind.png + 48-apps-kcachegrind.png + 64-apps-kcachegrind.png + 128-apps-kcachegrind.png +) + +ecm_add_app_icon(kcachegrind_SRCS ICONS ${kcachegrind_ICONS}) add_executable(kcachegrind ${kcachegrind_SRCS}) set(kcachegrind_LIBS KF5::Archive KF5::CoreAddons KF5::I18n KF5::XmlGui KF5::ConfigCore KF5::ConfigGui KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets KF5::KIONTLM KF5::DBusAddons ) target_link_libraries(kcachegrind core views ${kcachegrind_LIBS}) install(TARGETS kcachegrind ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) ########### install files ############### install( PROGRAMS org.kde.kcachegrind.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) install( FILES org.kde.kcachegrind.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) install( FILES tips DESTINATION ${KDE_INSTALL_DATADIR}/kcachegrind ) -ecm_install_icons( ICONS 128-apps-kcachegrind.png 64-apps-kcachegrind.png 32-apps-kcachegrind.png 48-apps-kcachegrind.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) +ecm_install_icons( + ICONS ${kcachegrind_ICONS} + DESTINATION ${KDE_INSTALL_ICONDIR} + THEME hicolor +)