CMakeLists.txt 1.1 KB
Newer Older
1
project(user-manager)
Vishesh Handa's avatar
Vishesh Handa committed
2
cmake_minimum_required(VERSION 2.8.12)
3
set(PROJECT_VERSION "5.13.80")
Vishesh Handa's avatar
Vishesh Handa committed
4

5
set(QT_MIN_VERSION "5.11.0")
Laurent Montel's avatar
Laurent Montel committed
6
7
8
set(KF5_MIN_VERSION "5.42.0")

find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
Vishesh Handa's avatar
Vishesh Handa committed
9
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
Àlex Fiestas's avatar
Àlex Fiestas committed
10
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
11

Laurent Montel's avatar
Laurent Montel committed
12
13
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED  COMPONENTS Core Widgets DBus)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED WidgetsAddons CoreAddons I18n Config ConfigWidgets KCMUtils KIO IconThemes Auth)
Àlex Fiestas's avatar
Àlex Fiestas committed
14
find_package(PWQuality REQUIRED)
15

Vishesh Handa's avatar
Vishesh Handa committed
16
17
18
19
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
20

Vishesh Handa's avatar
Vishesh Handa committed
21
include_directories(${PWQUALITY_INCLUDE_DIR})
22

Lasse Liehu's avatar
Lasse Liehu committed
23
24
# Set KI18n translation domain
add_definitions(-DTRANSLATION_DOMAIN=\"user_manager\")
David Faure's avatar
David Faure committed
25
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
26
27
28
29
add_definitions(-DQT_NO_CAST_FROM_ASCII)
add_definitions(-DQT_NO_CAST_TO_ASCII)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_definitions(-DQT_USE_QSTRINGBUILDER)
Lasse Liehu's avatar
Lasse Liehu committed
30

31
add_subdirectory(src)
Vishesh Handa's avatar
Vishesh Handa committed
32
33

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)