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

cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")

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

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

Laurent Montel's avatar
Laurent Montel committed
31 32 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")


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

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)