CMakeLists.txt 1.43 KB
Newer Older
1
project(ksirk)
Laurent Montel's avatar
Laurent Montel committed
2 3
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.2.0")
4

Laurent Montel's avatar
Laurent Montel committed
5
find_package(ECM 1.7.0 REQUIRED CONFIG)
Laurent Montel's avatar
Laurent Montel committed
6
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
7

Laurent Montel's avatar
Laurent Montel committed
8 9 10 11 12 13 14 15 16 17 18 19
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
find_package(KF5 REQUIRED COMPONENTS 
    CoreAddons
    Config
    WidgetsAddons
    DBusAddons
    Declarative
    I18n
    GuiAddons
    ConfigWidgets
    ItemViews
    IconThemes
20
    DocTools
Laurent Montel's avatar
Laurent Montel committed
21 22 23 24
    Completion
    TextWidgets
    XmlGui
    KIO
25
    KDELibs4Support
Laurent Montel's avatar
Laurent Montel committed
26 27 28
    Wallet
    NotifyConfig
    NewStuff)
29

Laurent Montel's avatar
Laurent Montel committed
30 31
find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 REQUIRED)
32

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

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="kbounce")
find_package(Phonon4Qt5 CONFIG REQUIRED)
43 44 45
find_package(Qca-qt5 2.1.0)
set_package_properties(Qca-qt5 PROPERTIES DESCRIPTION "Support for encryption"
                       URL "http://download.kde.org/stable/qca-qt5"
Laurent Montel's avatar
Laurent Montel committed
46 47 48
                       TYPE REQUIRED)

kde_enable_exceptions()
49 50 51 52

remove_definitions(-DQT_NO_STL) 

add_subdirectory(ksirk)
53
add_subdirectory(ksirkskineditor)
54
add_subdirectory(doc)
Laurent Montel's avatar
Laurent Montel committed
55
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)