-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
71 lines (60 loc) · 2.09 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
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(kmail-unsubscribe VERSION "1.1.0")
set(KF_MIN_VERSION "6.0.0")
set(QT_REQUIRED_VERSION "6.6.0")
# Extra CMake Modules
find_package(ECM ${KF_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_DIR} ${ECM_KDE_MODULE_DIR})
include(ECMQtDeclareLoggingCategory)
include(KDEInstallDirs)
include(KDECMakeSettings)
find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Network Widgets)
find_package(KF6Config ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KF6GuiAddons ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KF6XmlGui ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KF6Parts ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KF6KIO ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KPim6MailCommon ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KPim6MessageCore ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KPim6MessageViewer ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KPim6Libkdepim ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KPim6PimCommonAkonadi ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KF6I18n ${KF_MIN_VERSION} NO_MODULE)
ki18n_install(po)
set(kmail_unsubscribe_SRCS
unsubscribemanager.cpp
unsubscribemanager.h
unsubscribeplugin.cpp
unsubscribeplugin.h
unsubscribeplugininterface.cpp
unsubscribeplugininterface.h
oneclickunsubscribejob.cpp
oneclickunsubscribejob.h
)
ecm_qt_declare_logging_category(
kmail_unsubscribe_SRCS
HEADER "unsubscribe_debug.h"
IDENTIFIER "UnsubscribePlugin"
CATEGORY_NAME "xyz.datagirl.kpim.unsubscribe"
DESCRIPTION "Unsubscribe Plugin"
DEFAULT_SEVERITY Info
EXPORT
)
set(BUILD_SHARED_LIBS ON)
kcoreaddons_add_plugin(kmail_unsubscribe
SOURCES ${kmail_unsubscribe_SRCS}
INSTALL_NAMESPACE pim6/messageviewer/viewerplugin)
target_link_libraries(kmail_unsubscribe
KPim6::PimCommon
KPim6::Libkdepim
KPim6::PimCommonAkonadi
KPim6::MessageViewer
KF6::XmlGui
KF6::KIOCore
KF6::KIOGui
KF6::KIOWidgets
KF6::I18n)
set_target_properties(kmail_unsubscribe PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
)