CMakeLists.txt 1.14 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
Minor  
Laurent Montel committed
4 5
set(QT_MIN_VERSION "5.3.0")
set(KF5_VERSION "5.9.0")
Laurent Montel's avatar
Laurent Montel committed
6

Laurent Montel's avatar
Minor  
Laurent Montel committed
7
find_package(ECM 5.9.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 32
include(ECMAddTests)

Laurent Montel's avatar
Laurent Montel committed
33 34 35 36 37 38 39

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")


add_subdirectory( src )
Laurent Montel's avatar
Laurent Montel committed
40 41 42
if (BUILD_TESTING)
   add_subdirectory( autotests )
endif()
43
install( FILES data/kde.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
Laurent Montel's avatar
Laurent Montel committed
44 45

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)