CMakeLists.txt 1.34 KB
Newer Older
1 2
project(lskat)

Laurent Montel's avatar
Laurent Montel committed
3 4 5
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")

Laurent Montel's avatar
Laurent Montel committed
6
find_package(ECM 1.7.0 REQUIRED CONFIG)
Laurent Montel's avatar
Laurent Montel committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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)
find_package(KF5 REQUIRED COMPONENTS 
    CoreAddons
    Config
    ItemModels
    WidgetsAddons
    WindowSystem
    Config
    DBusAddons
    I18n
    ConfigWidgets
    TextWidgets
    XmlGui
    KIO
    NotifyConfig
    NewStuff
Laurent Montel's avatar
Laurent Montel committed
25 26 27
    KDELibs4Support
    DocTools
)
Laurent Montel's avatar
Laurent Montel committed
28 29 30 31 32

find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 CONFIG REQUIRED)

include(FeatureSummary)
Laurent Montel's avatar
Laurent Montel committed
33
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
34 35 36 37 38 39
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
40

41
add_subdirectory(src)
42
add_subdirectory(grafix)
43
add_subdirectory(doc)
44 45

########### install files ###############
Laurent Montel's avatar
Laurent Montel committed
46
install( PROGRAMS org.kde.lskat.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
47

Laurent Montel's avatar
Laurent Montel committed
48
ecm_install_icons( ICONS 128-apps-lskat.png  16-apps-lskat.png  22-apps-lskat.png  32-apps-lskat.png  48-apps-lskat.png  64-apps-lskat.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor   )
49

50
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)