CMakeLists.txt 1.41 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 20 21 22 23 24 25 26 27
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
find_package(KF5 REQUIRED COMPONENTS 
    CoreAddons
    Config
    WidgetsAddons
    Config
    DBusAddons
    Declarative
    I18n
    GuiAddons
    ConfigWidgets
    ItemViews
    IconThemes
    Completion
    TextWidgets
    XmlGui
    KIO
    Wallet
    NotifyConfig
    NewStuff)
28

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

Laurent Montel's avatar
Laurent Montel committed
32
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 40 41
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)
42 43 44
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
45 46 47
                       TYPE REQUIRED)

kde_enable_exceptions()
48 49 50 51

remove_definitions(-DQT_NO_STL) 

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