CMakeLists.txt 1.58 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1 2 3
project(kdebugsettings)

cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
Laurent Montel's avatar
Laurent Montel committed
4 5
set(QT_MIN_VERSION "5.4.0")
set(KF5_VERSION "5.12.0")
Laurent Montel's avatar
Laurent Montel committed
6

7
find_package(ECM 5.14.0 REQUIRED CONFIG)
Laurent Montel's avatar
Laurent Montel committed
8 9
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})

Laurent Montel's avatar
Minor  
Laurent Montel committed
10

Laurent Montel's avatar
Laurent Montel committed
11
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Test)
Laurent Montel's avatar
Minor  
Laurent Montel committed
12
find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS 
Laurent Montel's avatar
Laurent Montel committed
13
    CoreAddons 
Laurent Montel's avatar
Laurent Montel committed
14 15
    Config
    ConfigWidgets
Laurent Montel's avatar
Laurent Montel committed
16 17 18 19
    DBusAddons 
    I18n 
    GuiAddons 
    IconThemes 
Laurent Montel's avatar
Laurent Montel committed
20
    WidgetsAddons
Laurent Montel's avatar
Laurent Montel committed
21
    ItemViews
Laurent Montel's avatar
Laurent Montel committed
22
    Completion
Laurent Montel's avatar
Laurent Montel committed
23 24 25
    KIO)
    
include(FeatureSummary)
Laurent Montel's avatar
Laurent Montel committed
26
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
27 28 29 30
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
Laurent Montel's avatar
Laurent Montel committed
31
include(ECMAddTests)
32
include(ECMQtDeclareLoggingCategory)
Laurent Montel's avatar
Laurent Montel committed
33 34 35 36 37

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="kdebugsettings")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")

Laurent Montel's avatar
Laurent Montel committed
38 39 40 41 42 43 44 45
# KDE Application Version, managed by release script
set (KDE_APPLICATIONS_VERSION_MAJOR "15")
set (KDE_APPLICATIONS_VERSION_MINOR "08")
set (KDE_APPLICATIONS_VERSION_MICRO "0")

set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")

configure_file(config-kdebugsettings.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kdebugsettings.h)
Laurent Montel's avatar
Laurent Montel committed
46 47

add_subdirectory( src )
Laurent Montel's avatar
Laurent Montel committed
48 49 50
if (BUILD_TESTING)
   add_subdirectory( autotests )
endif()
51
install( FILES data/kde.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
Laurent Montel's avatar
Laurent Montel committed
52 53

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)