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

Laurent Montel's avatar
Laurent Montel committed
3
cmake_minimum_required (VERSION 3.0 FATAL_ERROR)
Laurent Montel's avatar
Laurent Montel committed
4
set(QT_MIN_VERSION "5.7.0")
Laurent Montel's avatar
Laurent Montel committed
5
set(KF5_VERSION "5.32.0")
Laurent Montel's avatar
Laurent Montel committed
6

Laurent Montel's avatar
Laurent Montel committed
7
find_package(ECM ${KF5_VERSION} 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
    Config
Laurent Montel's avatar
Laurent Montel committed
15 16
    DBusAddons 
    I18n 
Laurent Montel's avatar
Laurent Montel committed
17
    WidgetsAddons
Laurent Montel's avatar
Laurent Montel committed
18
    ItemViews
Michael Palimaka's avatar
Michael Palimaka committed
19
    Completion)
Laurent Montel's avatar
Laurent Montel committed
20 21
    
include(FeatureSummary)
Laurent Montel's avatar
Laurent Montel committed
22
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
23 24
include(ECMInstallIcons)
include(KDEInstallDirs)
25
include(KDECompilerSettings NO_POLICY_SCOPE)
Laurent Montel's avatar
Laurent Montel committed
26
include(KDECMakeSettings)
Laurent Montel's avatar
Laurent Montel committed
27
include(ECMAddTests)
28
include(ECMQtDeclareLoggingCategory)
Laurent Montel's avatar
Laurent Montel committed
29 30 31 32 33

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
34
# KDE Application Version, managed by release script
35
set (KDE_APPLICATIONS_VERSION_MAJOR "17")
36
set (KDE_APPLICATIONS_VERSION_MINOR "07")
37
set (KDE_APPLICATIONS_VERSION_MICRO "70")
Laurent Montel's avatar
Laurent Montel committed
38 39 40 41

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
42 43

add_subdirectory( src )
Laurent Montel's avatar
Laurent Montel committed
44 45 46
if (BUILD_TESTING)
   add_subdirectory( autotests )
endif()
47
install( FILES data/kde.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
48
install( FILES data/kde.renamecategories DESTINATION ${KDE_INSTALL_CONFDIR} )
Laurent Montel's avatar
Laurent Montel committed
49 50

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)