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

Laurent Montel's avatar
Laurent Montel committed
3 4
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
Frederik Schwarzer's avatar
Frederik Schwarzer committed
5
set (KF5_MIN_VERSION "5.15.0")
Laurent Montel's avatar
Laurent Montel committed
6

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

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

include(FeatureSummary)
Laurent Montel's avatar
Laurent Montel committed
35
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
36 37
include(ECMInstallIcons)
include(KDEInstallDirs)
38
include(KDECompilerSettings NO_POLICY_SCOPE)
Laurent Montel's avatar
Laurent Montel committed
39
include(KDECMakeSettings)
40
include(ECMQtDeclareLoggingCategory)
Laurent Montel's avatar
Laurent Montel committed
41 42

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
43

44
add_subdirectory(src)
45
add_subdirectory(grafix)
46
add_subdirectory(doc)
47 48

########### install files ###############
Frederik Schwarzer's avatar
Frederik Schwarzer committed
49 50 51 52 53 54 55 56 57 58 59
install(PROGRAMS org.kde.lskat.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})

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
)
60

61
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)