Commit b514f4d5 authored by Laurent Montel's avatar Laurent Montel 😁

Use new KDE_ macro

parent cc7542ef
project(kreversi)
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 1.3.0 REQUIRED NO_MODULE)
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test Declarative)
......@@ -29,6 +29,7 @@ find_package(KF5 REQUIRED COMPONENTS
find_package(KF5KDEGames 4.9.0 REQUIRED)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
......@@ -67,12 +68,12 @@ add_executable(kreversi ${kreversi_SRCS})
target_link_libraries(kreversi Qt5::Svg Qt5::Declarative KF5::Declarative KF5::XmlGui KF5::TextWidgets KF5KDEGames KF5::Completion KF5::DBusAddons)
install(TARGETS kreversi ${INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS kreversi ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### install files ###############
install( PROGRAMS org.kde.kreversi.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
#install( FILES kreversi.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( FILES kreversiui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kreversi )
install( DIRECTORY qml DESTINATION ${DATA_INSTALL_DIR}/kreversi )
install( PROGRAMS org.kde.kreversi.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
#install( FILES kreversi.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} )
install( FILES kreversiui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kreversi )
install( DIRECTORY qml DESTINATION ${KDE_INSTALL_DATADIR}/kreversi )
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
########### install files ###############
#
#
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kreversi)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kreversi)
ecm_install_icons(ICONS
hi128-apps-kreversi.png hi22-apps-kreversi.png hi48-apps-kreversi.png ox16-actions-lastmoves.png ox22-actions-lastmoves.png ox32-actions-lastmoves.png ox48-actions-lastmoves.png
hi16-apps-kreversi.png hi32-apps-kreversi.png hi64-apps-kreversi.png ox16-actions-legalmoves.png ox22-actions-legalmoves.png ox32-actions-legalmoves.png ox48-actions-legalmoves.png
DESTINATION ${ICON_INSTALL_DIR})
DESTINATION ${KDE_INSTALL_ICONDIR})
......@@ -3,4 +3,4 @@
install( FILES
default_theme.desktop
default_theme.svgz
DESTINATION ${DATA_INSTALL_DIR}/kreversi/pics )
DESTINATION ${KDE_INSTALL_DATADIR}/kreversi/pics )
......@@ -4,8 +4,8 @@
########### install files ###############
install( FILES kreversi.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR} )
install( FILES reversi-click.wav reversi-won.wav DESTINATION ${DATA_INSTALL_DIR}/kreversi/sounds )
install( FILES kreversi.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
install( FILES reversi-click.wav reversi-won.wav DESTINATION ${KDE_INSTALL_DATADIR}/kreversi/sounds )
......
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