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

Use new KDE_ macro

parent b08ec8bb
......@@ -3,7 +3,7 @@ project(lskat)
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 Qml Quick QuickWidgets Svg Test)
......@@ -28,6 +28,7 @@ find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 CONFIG REQUIRED)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
......@@ -42,8 +43,8 @@ add_subdirectory(grafix)
add_subdirectory(doc)
########### install files ###############
install( PROGRAMS org.kde.lskat.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS org.kde.lskat.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
ecm_install_icons( ICONS hi128-apps-lskat.png hi16-apps-lskat.png hi22-apps-lskat.png hi32-apps-lskat.png hi48-apps-lskat.png hi64-apps-lskat.png DESTINATION ${ICON_INSTALL_DIR} )
ecm_install_icons( ICONS hi128-apps-lskat.png hi16-apps-lskat.png hi22-apps-lskat.png hi32-apps-lskat.png hi48-apps-lskat.png hi64-apps-lskat.png DESTINATION ${KDE_INSTALL_ICONDIR} )
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 lskat)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR lskat)
......@@ -11,5 +11,5 @@ blue.rc
egyptian.desktop
egyptian.rc
egyptian.svg
DESTINATION ${DATA_INSTALL_DIR}/lskat/grafix)
DESTINATION ${KDE_INSTALL_DATADIR}/lskat/grafix)
......@@ -34,15 +34,16 @@ ki18n_wrap_ui( lskat_SRCS
configure_file(config-src.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-src.h)
kde4_add_app_icon(lskat_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../hi*-app-lskat.png")
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../hi*-apps-lskat.png")
ecm_add_app_icon(lskat_SRCS ICONS ${ICONS_SRCS})
add_executable( lskat ${lskat_SRCS} )
target_link_libraries( lskat KF5KDEGames KF5::KDELibs4Support Qt5::Gui Qt5::Svg )
install(TARGETS lskat ${INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS lskat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### install files ###############
install( FILES lskatui.rc DESTINATION ${DATA_INSTALL_DIR}/lskat )
install( FILES lskatui.rc DESTINATION ${KDE_INSTALL_DATADIR}/lskat )
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