CMakeLists.txt 1.39 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 6
find_package(ECM 1.3.0 REQUIRED CONFIG)
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 33 34 35 36 37 38 39 40
include(FeatureSummary)
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)
41 42 43
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
44 45 46
                       TYPE REQUIRED)

kde_enable_exceptions()
47 48 49 50

remove_definitions(-DQT_NO_STL) 

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