-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
89 lines (72 loc) · 2.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
cmake_minimum_required(VERSION 3.16)
project(choqok)
set (QT_MIN_VERSION "5.15.0")
set (KF_MIN_VERSION "5.90.0")
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMInstallIcons)
include(ECMQtDeclareLoggingCategory)
include(GenerateExportHeader)
include(FeatureSummary)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED
Core
DBus
Network
NetworkAuth
Widgets
)
find_package(KF5 ${KF_MIN_VERSION} REQUIRED
ConfigWidgets
CoreAddons
DocTools
I18n
Emoticons
GuiAddons
KCMUtils
KIO
Notifications
NotifyConfig
Sonnet
TextWidgets
Wallet
WidgetsAddons
XmlGui
)
if(NOT WIN32)
find_package(KF5 ${KF_MIN_VERSION} REQUIRED GlobalAccel)
endif()
set(HAVE_KGLOBALACCEL ${KF5GlobalAccel_FOUND})
find_package(KF5 COMPONENTS Purpose)
#option(QTINDICATE_DISABLE "Disable support for notifications via indicator")
find_package(Qca-qt${QT_MAJOR_VERSION} REQUIRED)
#if(NOT QTINDICATE_DISABLE)
# find_package(QtIndicate)
# if(QtIndicate_FOUND)
# set(QTINDICATE_BUILD TRUE)
# endif(QtIndicate_FOUND)
#endif(NOT QTINDICATE_DISABLE)
#if(QTINDICATE_BUILD)
# message(STATUS "Found libindicate-qt: Will support notifications via indicator")
#else(QTINDICATE_BUILD)
# message(STATUS "Optional dependency libindicate-qt not found: Won't support notifications via indicator")
#endif(QTINDICATE_BUILD)
add_subdirectory( libchoqok )
add_subdirectory( helperlibs )
add_subdirectory( choqok )
add_subdirectory( icons )
add_subdirectory( plugins )
add_subdirectory( microblogs )
add_subdirectory( images )
add_subdirectory( cmake )
include(ECMOptionalAddSubdirectory)
ecm_optional_add_subdirectory( doc )
ecm_qt_install_logging_categories(
EXPORT CHOQOK
FILE choqok.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
ki18n_install( po )
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)