Commit 5fc2a00a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new macro for use icon on Win/MacOsX. Use new KDE_ macro.

parent 944f1b63
......@@ -3,7 +3,7 @@ project(kdiamond)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
find_package(ECM 1.3.0 REQUIRED CONFIG)
find_package(ECM 1.7.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets )
......@@ -26,6 +26,7 @@ include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
include(ECMAddAppIcon)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="kdiamond")
......
########### install files ###############
#
#
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kdiamond)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kdiamond)
......@@ -3,4 +3,4 @@ set(kdiamond_SOUNDS
KDiamond-Stone-Swap.ogg
KDiamond-Stone-Touch.ogg
)
install(FILES ${kdiamond_SOUNDS} DESTINATION ${SOUND_INSTALL_DIR})
install(FILES ${kdiamond_SOUNDS} DESTINATION ${KDE_INSTALL_SOUNDDIR})
......@@ -13,14 +13,15 @@ set(kdiamond_SRCS
kconfig_add_kcfg_files(kdiamond_SRCS settings.kcfgc)
#kde4_add_app_icon(kdiamond_SRCS "pics/hi*-apps-kdiamond.png")
file(GLOB ICONS_SRCS "pics/hi*-apps-kdiamond.png")
ecm_add_app_icon(kdiamond_SRCS ICONS ${ICONS_SRCS})
add_executable(kdiamond ${kdiamond_SRCS})
target_link_libraries(kdiamond KF5KDEGames KF5::NotifyConfig KF5::I18n KF5::XmlGui KF5::Notifications KF5::DBusAddons)
install(TARGETS kdiamond ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES kdiamond.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
install(PROGRAMS org.kde.kdiamond.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install(FILES kdiamond.kcfg DESTINATION ${DATA_INSTALL_DIR}/kdiamond)
install(FILES kdiamondui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kdiamond)
install(FILES kdiamond.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
install(TARGETS kdiamond ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES kdiamond.knsrc DESTINATION ${KDE_INSTALL_CONFDIR})
install(PROGRAMS org.kde.kdiamond.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES kdiamond.kcfg DESTINATION ${KDE_INSTALL_DATADIR}/kdiamond)
install(FILES kdiamondui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kdiamond)
install(FILES kdiamond.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR})
ecm_install_icons(ICONS hi128-apps-kdiamond.png hi16-apps-kdiamond.png hi22-apps-kdiamond.png hi32-apps-kdiamond.png hi48-apps-kdiamond.png hi64-apps-kdiamond.png DESTINATION ${ICON_INSTALL_DIR})
ecm_install_icons(ICONS hi128-apps-kdiamond.png hi16-apps-kdiamond.png hi22-apps-kdiamond.png hi32-apps-kdiamond.png hi48-apps-kdiamond.png hi64-apps-kdiamond.png DESTINATION ${KDE_INSTALL_ICONDIR})
......@@ -9,4 +9,4 @@ set(kdiamond_THEME_SRCS
egyptian.svgz
egyptian_preview.png
)
install(FILES ${kdiamond_THEME_SRCS} DESTINATION ${DATA_INSTALL_DIR}/kdiamond/themes)
install(FILES ${kdiamond_THEME_SRCS} DESTINATION ${KDE_INSTALL_DATADIR}/kdiamond/themes)
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