CMakeLists.txt 14.1 KB
Newer Older
1
2
add_definitions(-DTRANSLATION_DOMAIN=\"libmessageviewer\")

3
4
add_subdirectory(messagepartthemes/grantlee)

5
6
7
8
# KCFG files:
# The main messageviewer.kcfg is configured by CMake and put in the build directory.

if(KDEPIM_ENTERPRISE_BUILD)
Laurent Montel's avatar
Laurent Montel committed
9
10
11
    set(LEGACY_MANGLE_FROM_TO_HEADERS true)
    set(LEGACY_BODY_INVITES true)
    set(EXCHANGE_COMPATIBLE_INVITATIONS true)
12
else()
Laurent Montel's avatar
Laurent Montel committed
13
14
15
    set(LEGACY_MANGLE_FROM_TO_HEADERS false)
    set(LEGACY_BODY_INVITES false)
    set(EXCHANGE_COMPATIBLE_INVITATIONS false)
16
17
18
19
endif()

configure_file(settings/messageviewer.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/messageviewer.kcfg)
include(CheckIncludeFiles)
Tobias C. Berner's avatar
Tobias C. Berner committed
20
21
22
find_package(Inotify)
set_package_properties(Inotify PROPERTIES
                       PURPOSE "Filesystem alteration notifications using inotify")
23
24
25
26
27
if(Inotify_FOUND)
    set(HAVE_SYS_INOTIFY_H 1)
else()
    set(HAVE_SYS_INOTIFY_H 0)
endif()
28
29
30
31
32
33
configure_file(config-messageviewer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-messageviewer.h)

# target_include_directories does not handle empty include paths
include_directories(${GPGME_INCLUDES})

if(BUILD_TESTING)
34
    add_subdirectory(header/autotests)
Laurent Montel's avatar
Laurent Montel committed
35
36
37
    add_subdirectory(scamdetection/autotests)
    add_subdirectory(scamdetection/tests)
    add_subdirectory(viewerplugins/tests/)
38
    add_subdirectory(htmlwriter/autotests)
Laurent Montel's avatar
Laurent Montel committed
39
    add_subdirectory(viewer/webengine/tests)
40
    add_subdirectory(messagepartthemes/default/autotests)
Laurent Montel's avatar
Laurent Montel committed
41
    add_subdirectory(widgets/autotests/)
42
43
44
45
endif()
add_subdirectory(pics)
add_subdirectory(kconf_update)
add_subdirectory(about)
46
add_subdirectory(messageviewerheaderplugins)
47
48

if (DKIM_CHECKER_BUILD)
Laurent Montel's avatar
Laurent Montel committed
49
50
51
52
53
54
    add_subdirectory(dkim-verify)
    set(dkim_verify_SRCS
        dkim-verify/dkiminfo.cpp
        dkim-verify/dkimmanagerkey.cpp
        dkim-verify/dkimmanagerkeywidget.cpp
        dkim-verify/dkimmanagerkeydialog.cpp
Laurent Montel's avatar
Laurent Montel committed
55
        dkim-verify/dkimdownloadkeyjob.cpp
Laurent Montel's avatar
Laurent Montel committed
56
57
        dkim-verify/dkimconfiguredialog.cpp
        dkim-verify/dkimconfigurewidget.cpp
58
        dkim-verify/dkimchecksignaturejob.cpp
Laurent Montel's avatar
Laurent Montel committed
59
        dkim-verify/dkimconfiguretabwidget.cpp
Laurent Montel's avatar
Laurent Montel committed
60
61
        dkim-verify/dkimcheckauthenticationstatusjob.cpp
        dkim-verify/dkimauthenticationstatusinfo.cpp
Laurent Montel's avatar
Laurent Montel committed
62
63
        dkim-verify/dkimutil.cpp
        dkim-verify/dkimconfiguretab.cpp
Laurent Montel's avatar
Laurent Montel committed
64
        )
65
66
endif()

67
if(DEBUG_SIGNATURE)
Laurent Montel's avatar
Laurent Montel committed
68
    add_definitions(-DDEBUG_SIGNATURE)
69
70
endif()

Laurent Montel's avatar
Laurent Montel committed
71
72
73
74
75
set(libmessageviewer_mailviewer_SRCS
    viewer/webengine/mailwebengineview.cpp
    viewer/webengine/mailwebenginepage.cpp
    viewer/webengine/loadexternalreferencesurlinterceptor/loadexternalreferencesurlinterceptor.cpp
    viewer/webengine/cidreferencesurlinterceptor/cidreferencesurlinterceptor.cpp
Laurent Montel's avatar
Laurent Montel committed
76
    viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp
77
    viewer/webengine/blockmailtrackingurlinterceptor/blockmailtrackingurlinterceptor.cpp
Laurent Montel's avatar
Laurent Montel committed
78
    )
Laurent Montel's avatar
Laurent Montel committed
79

80
set(libmessageviewer_viewer_SRCS
81
    viewer/attachmentstrategy.cpp
Laurent Montel's avatar
Laurent Montel committed
82
    viewer/csshelper.cpp
83
    viewer/csshelperbase.cpp
Laurent Montel's avatar
Laurent Montel committed
84
85
86
87
88
89
90
91
    viewer/editorwatcher.cpp
    viewer/objecttreeemptysource.cpp
    viewer/objecttreeviewersource.cpp
    viewer/viewer.cpp
    viewer/viewer_p.cpp
    viewer/messagedisplayformatattribute.cpp
    viewer/urlhandlermanager.cpp
    viewer/mimeparttree/mimeparttreeview.cpp
92
    viewer/mimeparttree/mimetreemodel.cpp
Laurent Montel's avatar
Laurent Montel committed
93
    )
94
95

set(libmessageviewer_widgets_SRCS
Laurent Montel's avatar
Laurent Montel committed
96
97
98
99
100
101
102
103
    widgets/attachmentdialog.cpp
    widgets/configurewidget.cpp
    widgets/printingsettings.cpp
    widgets/htmlstatusbar.cpp
    widgets/vcardviewer.cpp
    widgets/invitationsettings.cpp
    widgets/openattachmentfolderwidget.cpp
    widgets/mailsourceviewtextbrowserwidget.cpp
104
    widgets/submittedformwarningwidget.cpp
Laurent Montel's avatar
Laurent Montel committed
105
    widgets/mailtrackingwarningwidget.cpp
Laurent Montel's avatar
Laurent Montel committed
106
    widgets/mailtrackingdetailsdialog.cpp
Laurent Montel's avatar
Laurent Montel committed
107
    )
108

Laurent Montel's avatar
Laurent Montel committed
109
110
111
set(libmessageviewer_widgets_webengine_SRCS
    widgets/mailsourcewebengineviewer.cpp
    )
112

113
set(libmessageviewer_header_SRCS
Laurent Montel's avatar
Laurent Montel committed
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
    header/contactdisplaymessagememento.cpp
    header/headerstrategy.cpp
    header/richheaderstrategy.cpp
    header/headerstyle.cpp
    header/grantleeheaderstyle.cpp
    header/plainheaderstyle.cpp
    header/headerstyle_util.cpp
    header/grantleeheaderformatter.cpp
    header/grantleeheaderteststyle.cpp
    header/kxface.cpp
    header/headerstyleplugin.cpp
    header/headerstylepluginmanager.cpp
    header/headerstyleinterface.cpp
    header/headerstylemenumanager.cpp
    )
129
130

set(libmessageviewer_scamdetection_SRCS
Laurent Montel's avatar
Laurent Montel committed
131
132
133
134
    scamdetection/scamdetectionwarningwidget.cpp
    scamdetection/scamdetectiondetailsdialog.cpp
    scamdetection/scamattribute.cpp
    scamdetection/scamcheckshorturl.cpp
135
    scamdetection/scamexpandurljob.cpp
Laurent Montel's avatar
Laurent Montel committed
136
    scamdetection/scamcheckshorturlmanager.cpp
Laurent Montel's avatar
Laurent Montel committed
137
    )
138

Laurent Montel's avatar
Laurent Montel committed
139
140
141
set(libmessageviewer_scamdetection_webengine_SRCS
    scamdetection/scamdetectionwebengine.cpp
    )
142

143
set(libmessageviewer_findbar_SRCS
Laurent Montel's avatar
Laurent Montel committed
144
145
    findbar/findbarsourceview.cpp
    )
146
147

set(libmessageviewer_utils_SRCS
148
    utils/iconnamecache.cpp
Laurent Montel's avatar
Laurent Montel committed
149
150
    utils/markmessagereadhandler.cpp
    utils/messageviewerutil.cpp
Sandro Knauß's avatar
Sandro Knauß committed
151
    utils/mimetype.cpp
Laurent Montel's avatar
Laurent Montel committed
152
    )
153

Laurent Montel's avatar
Laurent Montel committed
154
155
156
157
set(libmessageviewer_htmlwriter_webengine_SRCS
    htmlwriter/webengineparthtmlwriter.cpp
    htmlwriter/webengineembedpart.cpp
    )
158

159
160
161
162
163
164
set(libmessageviewer_htmlwriter_SRCS
    ${libmessageviewer_htmlwriter_webengine_SRCS}
    htmlwriter/bufferedhtmlwriter.cpp
    htmlwriter/filehtmlwriter.cpp
    )

165
set(libmessageviewer_antispam_SRCS
Laurent Montel's avatar
Laurent Montel committed
166
167
168
    antispam/spamheaderanalyzer.cpp
    antispam/antispamconfig.cpp
    )
169
170

set(libmessageviewer_job_SRCS
Laurent Montel's avatar
Laurent Montel committed
171
172
    job/modifymessagedisplayformatjob.cpp
    )
173
174

set(libmessageviewer_viewerplugins_SRCS
Laurent Montel's avatar
Laurent Montel committed
175
176
177
178
179
    viewerplugins/viewerpluginmanager.cpp
    viewerplugins/viewerplugin.cpp
    viewerplugins/viewerplugininterface.cpp
    viewerplugins/viewerplugintoolmanager.cpp
    )
180

181
182
183
184
set(libmessageviewer_messagepartthemes_default_SRCS
    messagepartthemes/default/converthtmltoplaintext.cpp
    messagepartthemes/default/defaultrenderer.cpp
    messagepartthemes/default/htmlblock.cpp
185
    messagepartthemes/default/messagepartrenderermanager.cpp
186
    messagepartthemes/default/plugins/attachmentmessagepartrenderer.cpp
187
    messagepartthemes/default/plugins/messagepartrenderer.cpp
Sandro Knauß's avatar
Sandro Knauß committed
188
    messagepartthemes/default/plugins/textmessagepartrenderer.cpp
Sandro Knauß's avatar
Sandro Knauß committed
189
    messagepartthemes/default/plugins/quotehtml.cpp
190
    messagepartthemes/default/messagepartrenderbase.cpp
Volker Krause's avatar
Volker Krause committed
191
    messagepartthemes/default/messagepartrenderplugin.cpp
192
    messagepartthemes/default/messagepartrendererfactory.cpp
193
194
    )

195
196
197
198
set(libmessageviewer_interfaces_SRCS
    interfaces/htmlwriter.cpp
    )

199
set(libmessageviewer_SRCS
Laurent Montel's avatar
Laurent Montel committed
200
    ${dkim_verify_SRCS}
Laurent Montel's avatar
Laurent Montel committed
201
    ${libmessageviewer_messagepartthemes_default_SRCS}
202
    ${libmessageviewer_htmlwriter_SRCS}
203
    ${libmessageviewer_messagepartthemes_SRCS}
204
    ${libmessageviewer_scamdetection_webengine_SRCS}
205
    ${libmessageviewer_widgets_webengine_SRCS}
Laurent Montel's avatar
Laurent Montel committed
206
207
208
209
210
211
212
213
214
215
216
    ${libmessageviewer_viewer_SRCS}
    ${libmessageviewer_widgets_SRCS}
    ${libmessageviewer_header_SRCS}
    ${libmessageviewer_scamdetection_SRCS}
    ${libmessageviewer_findbar_SRCS}
    ${libmessageviewer_utils_SRCS}
    ${libmessageviewer_antispam_SRCS}
    ${libmessageviewer_job_SRCS}
    ${libmessageviewer_viewerplugins_SRCS}
    settings/messageviewersettings.cpp
    ${libmessageviewer_mailviewer_SRCS}
217
    ${libmessageviewer_interfaces_SRCS}
Laurent Montel's avatar
Laurent Montel committed
218
    )
219

220
221
qt5_add_resources(libmessageviewer_SRCS messagepartthemes.qrc)

Laurent Montel's avatar
Laurent Montel committed
222
ecm_qt_declare_logging_category(libmessageviewer_SRCS HEADER messageviewer_debug.h IDENTIFIER MESSAGEVIEWER_LOG CATEGORY_NAME org.kde.pim.messageviewer)
223
224

kconfig_add_kcfg_files(libmessageviewer_SRCS
Laurent Montel's avatar
Laurent Montel committed
225
226
    settings/globalsettings_messageviewer.kcfgc
    )
227
228

ki18n_wrap_ui(libmessageviewer_SRCS
Laurent Montel's avatar
Laurent Montel committed
229
230
231
232
    ui/settings.ui
    ui/invitationsettings.ui
    ui/printingsettings.ui
    )
233
234
235
236
237
238


add_library(KF5MessageViewer ${libmessageviewer_SRCS})
generate_export_header(KF5MessageViewer BASE_NAME messageviewer)
add_library(KF5::MessageViewer ALIAS KF5MessageViewer)

239
target_include_directories(KF5MessageViewer INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/MessageViewer/;${KDE_INSTALL_INCLUDEDIR_KF5}/messageviewer>;${Inotify_INCLUDE_DIRS}")
240
241

target_link_libraries(KF5MessageViewer
Laurent Montel's avatar
Laurent Montel committed
242
243
244
245
246
247
248
    PUBLIC
    KF5::MessageCore
    KF5::PimCommon
    KF5::AkonadiCore
    KF5::AkonadiMime
    KF5::Contacts
    KF5::Libkleo
249
    KF5::MimeTreeParser
Laurent Montel's avatar
Laurent Montel committed
250
    PRIVATE
251
    KF5::SyntaxHighlighting
Laurent Montel's avatar
Laurent Montel committed
252
    KF5::ItemViews
Sandro Knauß's avatar
Sandro Knauß committed
253
    Qt5::Network
Laurent Montel's avatar
Laurent Montel committed
254
    KF5::WebEngineViewer
Laurent Montel's avatar
Laurent Montel committed
255
    KF5::LibkdepimAkonadi
Laurent Montel's avatar
Laurent Montel committed
256
257
    KF5::GrantleeTheme
    KF5::KaddressbookGrantlee
Laurent Montel's avatar
Laurent Montel committed
258
    KF5::MailTransportAkonadi
Laurent Montel's avatar
Laurent Montel committed
259
260
261
262
263
    KF5::Mime
    KF5::Mbox
    KF5::PimTextEdit
    KF5::Gravatar
    KF5::IconThemes
264
265
266
267
268
    KF5::I18n
    KF5::KIOFileWidgets
    KF5::KIOWidgets
    KF5::WindowSystem
    KF5::XmlGui
269
270
    Grantlee5::TextDocument
    Grantlee5::Templates
271
    Qt5::PrintSupport
272
    QGpgme
273
    ${Inotify_LIBRARIES}
Laurent Montel's avatar
Laurent Montel committed
274
    )
275

276
277
278
279
set_target_properties(KF5MessageViewer PROPERTIES
    VERSION ${MESSAGEVIEWER_VERSION_STRING}
    SOVERSION ${MESSAGEVIEWER_SOVERSION}
    EXPORT_NAME MessageViewer
Laurent Montel's avatar
Laurent Montel committed
280
    )
281
282
283
284

install(TARGETS
    KF5MessageViewer
    EXPORT KF5MessageViewerTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK}
Laurent Montel's avatar
Laurent Montel committed
285
    )
286

Laurent Montel's avatar
Laurent Montel committed
287
288
289
290
ecm_generate_headers(MessageViewer_Camelcasewebengine_HEADERS
    HEADER_NAMES
    MailWebEnginePage
    MailWebEngineView
291

Laurent Montel's avatar
Laurent Montel committed
292
293
294
295
    REQUIRED_HEADERS MessageViewer_webengine_HEADERS
    PREFIX MessageViewer
    RELATIVE viewer/webengine
    )
Laurent Montel's avatar
Laurent Montel committed
296

Laurent Montel's avatar
Laurent Montel committed
297
298
299
ecm_generate_headers(MessageViewer_Camelcasescam_HEADERS
    HEADER_NAMES
    ScamExpandUrlJob
Laurent Montel's avatar
Laurent Montel committed
300
    ScamCheckShortUrlManager
Laurent Montel's avatar
Laurent Montel committed
301
    ScamCheckShortUrl
Laurent Montel's avatar
Laurent Montel committed
302
303
304
305
306
307
    REQUIRED_HEADERS MessageViewer_scam_HEADERS
    PREFIX MessageViewer
    RELATIVE scamdetection
    )


308
ecm_generate_headers(MessageViewer_Camelcaseviewer_HEADERS
Laurent Montel's avatar
Laurent Montel committed
309
    HEADER_NAMES
310
    AttachmentStrategy
Laurent Montel's avatar
Laurent Montel committed
311
    Viewer
312
    CSSHelperBase
Laurent Montel's avatar
Laurent Montel committed
313
314
315
316
317
318
319
320
    CSSHelper
    ObjectTreeEmptySource
    EditorWatcher
    Stl_Util
    REQUIRED_HEADERS MessageViewer_viewer_HEADERS
    PREFIX MessageViewer
    RELATIVE viewer
    )
321
322

ecm_generate_headers(MessageViewer_Camelcasewidgets_HEADERS
Laurent Montel's avatar
Laurent Montel committed
323
324
325
326
327
328
329
330
    HEADER_NAMES
    InvitationSettings
    PrintingSettings
    ConfigureWidget
    REQUIRED_HEADERS MessageViewer_widgets_HEADERS
    PREFIX MessageViewer
    RELATIVE widgets
    )
331
332

ecm_generate_headers(MessageViewer_Camelcaseutils_HEADERS
Laurent Montel's avatar
Laurent Montel committed
333
    HEADER_NAMES
334
    IconNameCache
Laurent Montel's avatar
Laurent Montel committed
335
    MarkMessageReadHandler
Sandro Knauß's avatar
Sandro Knauß committed
336
337
    MessageViewerUtil
    MimeType
Laurent Montel's avatar
Laurent Montel committed
338
339
340
341
    REQUIRED_HEADERS MessageViewer_utils_HEADERS
    PREFIX MessageViewer
    RELATIVE utils
    )
342
343

ecm_generate_headers(MessageViewer_Camelcaseantispam_HEADERS
Laurent Montel's avatar
Laurent Montel committed
344
345
346
347
348
349
    HEADER_NAMES
    SpamHeaderAnalyzer
    REQUIRED_HEADERS MessageViewer_antispam_HEADERS
    PREFIX MessageViewer
    RELATIVE antispam
    )
350
351

ecm_generate_headers(MessageViewer_Camelcaseinterfaces_HEADERS
Laurent Montel's avatar
Laurent Montel committed
352
    HEADER_NAMES
353
    HtmlWriter
Laurent Montel's avatar
Laurent Montel committed
354
355
356
357
358
359
    BodyPartURLHandler
    URLHandler
    REQUIRED_HEADERS MessageViewer_interfaces_HEADERS
    PREFIX MessageViewer
    RELATIVE interfaces
    )
360

361
362
363
364
365
366
367
368
369
ecm_generate_headers(MessageViewer_Camelcasehtmlwriter_HEADERS
    HEADER_NAMES
    BufferedHtmlWriter
    FileHtmlWriter
    REQUIRED_HEADERS MessageViewer_htmlwriter_HEADERS
    PREFIX MessageViewer
    RELATIVE htmlwriter
    )

370
ecm_generate_headers(MessageViewer_Camelcasesettings_HEADERS
Laurent Montel's avatar
Laurent Montel committed
371
372
373
374
375
376
    HEADER_NAMES
    MessageViewerSettings
    REQUIRED_HEADERS MessageViewer_settings_HEADERS
    PREFIX MessageViewer
    RELATIVE settings
    )
377
378
379


ecm_generate_headers(MessageViewer_Camelcaseheader_HEADERS
Laurent Montel's avatar
Laurent Montel committed
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
    HEADER_NAMES
    HeaderStrategy
    GrantleeHeaderTestStyle
    GrantleeHeaderStyle
    HeaderStyle
    KXFace
    HeaderStyle_Util
    HeaderStylePlugin
    HeaderStyleInterface
    PlainHeaderStyle
    RichHeaderStrategy
    HeaderStylePluginManager
    HeaderStyleMenuManager
    REQUIRED_HEADERS MessageViewer_header_HEADERS
    PREFIX MessageViewer
    RELATIVE header
    )
397
398

ecm_generate_headers(MessageViewer_Camelcaseviewerplugin_HEADERS
Laurent Montel's avatar
Laurent Montel committed
399
400
401
402
403
404
405
406
407
    HEADER_NAMES
    ViewerPluginManager
    ViewerPlugin
    ViewerPluginInterface
    ViewerPluginToolManager
    REQUIRED_HEADERS MessageViewer_viewerplugin_HEADERS
    PREFIX MessageViewer
    RELATIVE viewerplugins
    )
408

Volker Krause's avatar
Volker Krause committed
409
410
411
412
ecm_generate_headers(MessageViewer_Camelcaserenderer_HEADERS
    HEADER_NAMES
    HtmlBlock
    MessagePartRendererBase
413
    MessagePartRendererManager
Volker Krause's avatar
Volker Krause committed
414
415
416
417
418
419
    MessagePartRenderPlugin
    REQUIRED_HEADERS MessageViewer_renderer_HEADERS
    PREFIX MessageViewer
    RELATIVE messagepartthemes/default
    )

420
421
ecm_generate_pri_file(BASE_NAME MessageViewer
    LIB_NAME KF5MessageViewer
422
    DEPS "PimCommon MessageCore AkonadiCore AkonadiMime Contacts Libkleo MimeTreeParser" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/MessageViewer
Laurent Montel's avatar
Laurent Montel committed
423
    )
424

Laurent Montel's avatar
Laurent Montel committed
425

426
install(FILES
Laurent Montel's avatar
Laurent Montel committed
427
    ${MessageViewer_Camelcasewebengine_HEADERS}
428
429
430
431
432
    ${MessageViewer_Camelcaseheader_HEADERS}
    ${MessageViewer_Camelcaseviewerplugin_HEADERS}
    ${MessageViewer_Camelcasesettings_HEADERS}
    ${MessageViewer_Camelcaseutils_HEADERS}
    ${MessageViewer_Camelcaseinterfaces_HEADERS}
433
    ${MessageViewer_Camelcasehtmlwriter_HEADERS}
434
435
436
    ${MessageViewer_Camelcaseviewer_HEADERS}
    ${MessageViewer_Camelcasewidgets_HEADERS}
    ${MessageViewer_Camelcaseantispam_HEADERS}
437
    ${MessageViewer_Camelfindbar_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
438
    ${MessageViewer_Camelcasescam_HEADERS}
Volker Krause's avatar
Volker Krause committed
439
    ${MessageViewer_Camelcaserenderer_HEADERS}
440
441
    DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/MessageViewer
    COMPONENT Devel
Laurent Montel's avatar
Laurent Montel committed
442
    )
443
444

install(FILES
Laurent Montel's avatar
Laurent Montel committed
445
    ${MessageViewer_webengine_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
446
    ${MessageViewer_scam_HEADERS}
447
448
449
450
451
    ${MessageViewer_viewerplugin_HEADERS}
    ${MessageViewer_settings_HEADERS}
    ${MessageViewer_header_HEADERS}
    ${MessageViewer_utils_HEADERS}
    ${MessageViewer_interfaces_HEADERS}
452
    ${MessageViewer_htmlwriter_HEADERS}
453
454
455
456
    ${MessageViewer_HEADERS}
    ${MessageViewer_viewer_HEADERS}
    ${MessageViewer_widgets_HEADERS}
    ${MessageViewer_antispam_HEADERS}
457
    ${MessageViewer_findbar_HEADERS}
Volker Krause's avatar
Volker Krause committed
458
    ${MessageViewer_renderer_HEADERS}
459
460
461
    ${CMAKE_CURRENT_BINARY_DIR}/messageviewer_export.h
    ${CMAKE_CURRENT_BINARY_DIR}/globalsettings_messageviewer.h
    ${CMAKE_CURRENT_BINARY_DIR}/messageviewer_debug.h
462
    ${CMAKE_CURRENT_BINARY_DIR}/config-messageviewer.h
463
464
    DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/messageviewer
    COMPONENT Devel
Laurent Montel's avatar
Laurent Montel committed
465
    )
466
467
468
469
470
471
472
473
474
475

install(FILES
    ${PRI_FILENAME}
    DESTINATION ${ECM_MKSPECS_INSTALL_DIR})


install(FILES header/data/messageviewer_header_themes.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )

install(FILES notify/messageviewer.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
install(FILES scamdetection/data/longurlServices.json DESTINATION ${KDE_INSTALL_DATADIR}/messageviewer )