CMakeLists.txt 17.4 KB
Newer Older
1
2
3

add_definitions(-DTRANSLATION_DOMAIN=\"libmessagecomposer\")

Laurent Montel's avatar
Laurent Montel committed
4
5
6
7
8
9
10
11
12
if (BUILD_QCH)
    ecm_install_qch_export(
        TARGETS KF5MessageComposer_QCH
        FILE KF5MessageComposerQchTargets.cmake
        DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
        COMPONENT Devel
    )
    set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KF5MessageComposerQchTargets.cmake\")")
endif()
13
14
15


if(BUILD_TESTING)
Laurent Montel's avatar
Laurent Montel committed
16
17
    add_subdirectory( imagescaling/autotests )
    add_subdirectory( imagescaling/tests )
Laurent Montel's avatar
Laurent Montel committed
18
    add_subdirectory( composer-ng/autotests )
19
    add_subdirectory( statusbarwidget/autotests )
20
    add_subdirectory( plugineditor/autotests )
21
    add_subdirectory( composer/autotests )
Laurent Montel's avatar
Laurent Montel committed
22
    add_subdirectory( snippet/autotests )
23
24
endif()

25
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/part)
26

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
add_library( KF5MessageComposer)
add_library(KF5::MessageComposer ALIAS KF5MessageComposer)

set(messagecomposer_interface_SRCS)
qt_add_dbus_interface(messagecomposer_interface_SRCS
    sendlater/org.freedesktop.Akonadi.SendLaterAgent.xml
    sendlaterinterface
)

qt_add_dbus_interface(messagecomposer_interface_SRCS
    followupreminder/org.freedesktop.Akonadi.FollowUpReminder.xml
    followupreminderinterface
    )

target_sources( KF5MessageComposer PRIVATE
    ${messagecomposer_interface_SRCS}
Laurent Montel's avatar
Laurent Montel committed
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
    job/jobbase.cpp
    job/contentjobbase.cpp
    job/attachmentjob.cpp
    job/singlepartjob.cpp
    job/multipartjob.cpp
    job/maintextjob.cpp
    job/signjob.cpp
    job/encryptjob.cpp
    job/signencryptjob.cpp
    job/transparentjob.cpp
    job/inserttextfilejob.cpp
    job/skeletonmessagejob.cpp
    job/aliasesexpandjob.cpp
    job/emailaddressresolvejob.cpp
    job/attachmentfrompublickeyjob.cpp
    job/distributionlistexpandjob.cpp
    job/savecontactpreferencejob.cpp
    job/attachmentvcardfromaddressbookjob.cpp
61
    job/attachmentclipboardjob.cpp
62
    job/protectedheadersjob.cpp
63
    job/autocryptheadersjob.cpp
64
    statusbarwidget/statusbarlabeltoggledstate.cpp
Laurent Montel's avatar
Laurent Montel committed
65
66
67
68
69
    composer/composer.cpp
    composer/signaturecontroller.cpp
    composer/composerlineedit.cpp
    composer/composerviewbase.cpp
    composer/keyresolver.cpp
70
71
    composer/composerviewinterface.cpp
    composer/composerattachmentinterface.cpp
72
    draftstatus/draftstatus.cpp
Laurent Montel's avatar
Laurent Montel committed
73
74
75
76
77
78
79
    recipient/recipientspicker.cpp
    recipient/recipient.cpp
    recipient/recipientline.cpp
    recipient/recipientseditor.cpp
    recipient/recipientseditorsidewidget.cpp
    recipient/kwindowpositioner.cpp
    recipient/distributionlistdialog.cpp
Laurent Montel's avatar
Laurent Montel committed
80
    snippet/convertsnippetvariablesjob.cpp
Laurent Montel's avatar
Laurent Montel committed
81
    snippet/convertsnippetvariablesutil.cpp
82
    snippet/convertsnippetvariablemenu.cpp
Laurent Montel's avatar
Laurent Montel committed
83
84
85
86
87
88
89
90
91
92
93
    imagescaling/imagescaling.cpp
    imagescaling/imagescalingwidget.cpp
    imagescaling/imagescalingutils.cpp
    imagescaling/imagescalingselectformat.cpp
    part/messagepart.cpp
    part/globalpart.cpp
    part/infopart.cpp
    part/textpart.cpp
    attachment/attachmentcontrollerbase.cpp
    attachment/attachmentmodel.cpp
    helper/messagehelper.cpp
Laurent Montel's avatar
Laurent Montel committed
94
95
96
    helper/messagefactoryng.cpp
    helper/messagefactoryforwardjob.cpp
    helper/messagefactoryreplyjob.cpp
Laurent Montel's avatar
Laurent Montel committed
97
98
99
    sender/akonadisender.cpp
    followupreminder/followupreminderselectdatedialog.cpp
    followupreminder/followupremindercreatejob.cpp
100
    followupreminder/followupreminder.cpp
Laurent Montel's avatar
Laurent Montel committed
101
102
    composer-ng/richtextcomposerng.cpp
    composer-ng/richtextcomposersignatures.cpp
Laurent Montel's avatar
Laurent Montel committed
103
104
105
    plugineditor/plugineditormanager.cpp
    plugineditor/plugineditor.cpp
    plugineditor/plugineditorinterface.cpp
Laurent Montel's avatar
Laurent Montel committed
106
    plugineditor/pluginactiontype.cpp
Laurent Montel's avatar
Laurent Montel committed
107
    plugineditor/plugincomposerinterface.cpp
Laurent Montel's avatar
Laurent Montel committed
108
109
110
   plugineditorcheckbeforesend/plugineditorcheckbeforesend.cpp
   plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.cpp
   plugineditorcheckbeforesend/plugineditorcheckbeforesendmanager.cpp
Laurent Montel's avatar
Laurent Montel committed
111
   plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.cpp
Laurent Montel's avatar
Laurent Montel committed
112
113
   plugineditorinit/plugineditorinit.cpp
   plugineditorinit/plugineditorinitmanager.cpp
Laurent Montel's avatar
Laurent Montel committed
114
   plugineditorinit/plugineditorinitinterface.cpp
115
116
117
   plugineditorconverttext/plugineditorconverttext.cpp
   plugineditorconverttext/plugineditorconverttextmanager.cpp
   plugineditorconverttext/plugineditorconverttextinterface.cpp
118
119
   plugineditorconverttext/plugineditorconverterinitialdata.cpp
   plugineditorconverttext/plugineditorconverterbeforeconvertingdata.cpp
Laurent Montel's avatar
Laurent Montel committed
120
121
    plugineditorgrammar/plugineditorgrammarmanager.cpp
    plugineditorgrammar/plugineditorgrammarcustomtoolsviewinterface.cpp
Laurent Montel's avatar
Laurent Montel committed
122
   plugineditorbase/plugineditorbase.cpp
Laurent Montel's avatar
Laurent Montel committed
123
   plugineditorbase/plugineditorconfigurebasewidget.cpp
124
125
126
127
128
129
130
    sendlater/sendlaterinfo.cpp
    sendlater/sendlaterjob.cpp
    sendlater/sendlatercreatejob.cpp
    sendlater/sendlaterremovejob.cpp
    sendlater/sendlaterutil.cpp
    sendlater/sendlaterdialog.cpp
    sendlater/sendlatertimedatewidget.cpp
131
132
    utils/util.cpp
    settings/messagecomposersettings.cpp
133
134

)
Laurent Montel's avatar
Laurent Montel committed
135

Laurent Montel's avatar
Laurent Montel committed
136

137
ki18n_wrap_ui(KF5MessageComposer
Laurent Montel's avatar
Laurent Montel committed
138
    imagescaling/ui/imagescalingwidget.ui
139
    sendlater/ui/sendlaterwidget.ui
Laurent Montel's avatar
Laurent Montel committed
140
    )
141
ecm_qt_declare_logging_category(KF5MessageComposer HEADER messagecomposer_debug.h IDENTIFIER MESSAGECOMPOSER_LOG CATEGORY_NAME org.kde.pim.messagecomposer
Laurent Montel's avatar
Laurent Montel committed
142
143
144
145
        DESCRIPTION "messagelib (messagecomposer)"
        OLD_CATEGORY_NAMES log_messagecomposer
        EXPORT MESSAGELIB
    )
146
147
148


if(KDEPIM_ENTERPRISE_BUILD)
Laurent Montel's avatar
Laurent Montel committed
149
150
    set(WARN_TOOMANY_RECIPIENTS_DEFAULT true)
    set(ALLOW_SEMICOLON_AS_ADDRESS_SEPARATOR_DEFAULT true)
151
else()
Laurent Montel's avatar
Laurent Montel committed
152
153
    set(WARN_TOOMANY_RECIPIENTS_DEFAULT false)
    set(ALLOW_SEMICOLON_AS_ADDRESS_SEPARATOR_DEFAULT false)
154
155
156
157
endif()

configure_file(settings/messagecomposer.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/messagecomposer.kcfg)

158
kconfig_add_kcfg_files(KF5MessageComposer
Laurent Montel's avatar
Laurent Montel committed
159
160
    settings/messagecomposersettings_base.kcfgc
    )
161

Laurent Montel's avatar
Laurent Montel committed
162
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
163
164
    set_target_properties(KF5MessageComposer PROPERTIES UNITY_BUILD ON)
endif()
165
166
generate_export_header(KF5MessageComposer BASE_NAME messagecomposer)
target_link_libraries(KF5MessageComposer
Laurent Montel's avatar
Laurent Montel committed
167
168
169
    PUBLIC
    KF5::Mime
    KF5::MessageCore
Laurent Montel's avatar
Laurent Montel committed
170
    KF5::PimCommonAkonadi
Laurent Montel's avatar
Laurent Montel committed
171
172
173
174
    KF5::AkonadiCore
    KF5::IdentityManagement
    KF5::AkonadiMime
    KF5::Libkleo
175
    KF5::MessageViewer
Laurent Montel's avatar
Laurent Montel committed
176
    PRIVATE
Laurent Montel's avatar
Laurent Montel committed
177
    KF5::MailTransportAkonadi
Laurent Montel's avatar
Laurent Montel committed
178
179
180
    KF5::PimTextEdit
    KF5::TemplateParser
    KF5::AkonadiWidgets
181
    KF5::PimCommonAkonadi
Laurent Montel's avatar
Laurent Montel committed
182
    KF5::KIOCore
183
184
185
186
187
    KF5::I18n
    KF5::KIOWidgets     # for KIO::JobUiDelegate
    KF5::KIOFileWidgets # for KEncodingDialog
    KF5::XmlGui         # for KActionCollection
    KF5::SonnetUi
188
    KF5::CalendarCore   # for KCalendarCore/Todo
Laurent Montel's avatar
Laurent Montel committed
189
    KF5::Archive
Laurent Montel's avatar
Laurent Montel committed
190
    KF5::Contacts
191
    KF5::SonnetCore
192
    KF5::GuiAddons
Laurent Montel's avatar
Laurent Montel committed
193
    )
194
195
196
197

target_include_directories(KF5MessageComposer INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/MessageComposer/;${KDE_INSTALL_INCLUDEDIR_KF5}/messagecomposer>")

set_target_properties(KF5MessageComposer PROPERTIES
198
    VERSION ${MESSAGECOMPOSER_VERSION}
199
200
    SOVERSION ${MESSAGECOMPOSER_SOVERSION}
    EXPORT_NAME MessageComposer
Laurent Montel's avatar
Laurent Montel committed
201
    )
202
203
204

install(TARGETS
    KF5MessageComposer
205
    EXPORT KF5MessageComposerTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}
Laurent Montel's avatar
Laurent Montel committed
206
    )
207

208
209
210
211
212
213
214
ecm_generate_headers(MessageComposer_Camelstatusbarwidget_HEADERS
    HEADER_NAMES
    StatusBarLabelToggledState
    REQUIRED_HEADERS MessageComposer_statusbarwidget_HEADERS
    PREFIX MessageComposer
    RELATIVE statusbarwidget
    )
215

Laurent Montel's avatar
Laurent Montel committed
216
217
218
ecm_generate_headers(MessageComposer_Camelsnippet_HEADERS
    HEADER_NAMES
    ConvertSnippetVariablesJob
Laurent Montel's avatar
Laurent Montel committed
219
    ConvertSnippetVariablesUtil
220
    ConvertSnippetVariableMenu
Laurent Montel's avatar
Laurent Montel committed
221
222
223
224
225
    REQUIRED_HEADERS MessageComposer_snippet_HEADERS
    PREFIX MessageComposer
    RELATIVE snippet
    )

Laurent Montel's avatar
Laurent Montel committed
226
ecm_generate_headers(MessageComposer_Camelplugineditor_HEADERS
Laurent Montel's avatar
Laurent Montel committed
227
228
    HEADER_NAMES
    PluginEditor
Laurent Montel's avatar
Laurent Montel committed
229
    PluginActionType
Laurent Montel's avatar
Laurent Montel committed
230
    PluginEditorInterface
Laurent Montel's avatar
Laurent Montel committed
231
    PluginComposerInterface
Laurent Montel's avatar
Laurent Montel committed
232
233
234
235
236
    PluginEditorManager
    REQUIRED_HEADERS MessageComposer_plugineditor_HEADERS
    PREFIX MessageComposer
    RELATIVE plugineditor
    )
Laurent Montel's avatar
Laurent Montel committed
237

Laurent Montel's avatar
Laurent Montel committed
238
239
ecm_generate_headers(MessageComposer_Camelplugineditorinit_HEADERS
    HEADER_NAMES
Laurent Montel's avatar
Laurent Montel committed
240
241
    PluginEditorInit
    PluginEditorInitManager
Laurent Montel's avatar
Laurent Montel committed
242
    PluginEditorInitInterface
Laurent Montel's avatar
Laurent Montel committed
243
244
245
246
247
    REQUIRED_HEADERS MessageComposer_plugineditorinit_HEADERS
    PREFIX MessageComposer
    RELATIVE plugineditorinit
    )

Laurent Montel's avatar
Laurent Montel committed
248
249
250
ecm_generate_headers(MessageComposer_CamelPluginEditorBase_HEADERS
    HEADER_NAMES
    PluginEditorBase
Laurent Montel's avatar
Laurent Montel committed
251
    PluginEditorConfigureBaseWidget
Laurent Montel's avatar
Laurent Montel committed
252
253
254
255
256
    REQUIRED_HEADERS MessageComposer_PluginEditorBase_HEADERS
    PREFIX MessageComposer
    RELATIVE plugineditorbase
    )

257
258
259
260
261
ecm_generate_headers(MessageComposer_Camelplugineditorconverttext_HEADERS
    HEADER_NAMES
    PluginEditorConvertText
    PluginEditorConvertTextManager
    PluginEditorConvertTextInterface
262
263
    PluginEditorConverterInitialData
    PluginEditorConverterBeforeConvertingData
264
265
266
267
268
    REQUIRED_HEADERS MessageComposer_plugineditorconverttext_HEADERS
    PREFIX MessageComposer
    RELATIVE plugineditorconverttext
    )

Laurent Montel's avatar
Laurent Montel committed
269
270
271
272
273
274
275
276
277
ecm_generate_headers(MessageComposer_Camelplugineditorgrammar_HEADERS
    HEADER_NAMES
    PluginEditorGrammarManager
    PluginEditorGrammarCustomToolsViewInterface
    REQUIRED_HEADERS MessageComposer_plugineditorgrammar_HEADERS
    PREFIX MessageComposer
    RELATIVE plugineditorgrammar
    )

278

Laurent Montel's avatar
Laurent Montel committed
279
280
281
282
283
ecm_generate_headers(MessageComposer_Camelplugineditorcheckbeforesend_HEADERS
    HEADER_NAMES
    PluginEditorCheckBeforeSend
    PluginEditorCheckBeforeSendInterface
    PluginEditorCheckBeforeSendManager
Laurent Montel's avatar
Laurent Montel committed
284
    PluginEditorCheckBeforeSendParams
Laurent Montel's avatar
Laurent Montel committed
285
286
287
288
289
290
    REQUIRED_HEADERS MessageComposer_plugineditorcheckbeforesend_HEADERS
    PREFIX MessageComposer
    RELATIVE plugineditorcheckbeforesend
    )


291
ecm_generate_headers(MessageComposer_Camelcaseattachement_HEADERS
Laurent Montel's avatar
Laurent Montel committed
292
293
294
295
296
297
298
    HEADER_NAMES
    AttachmentModel
    AttachmentControllerBase
    REQUIRED_HEADERS MessageComposer_attachement_HEADERS
    PREFIX MessageComposer
    RELATIVE attachment
    )
299
300

ecm_generate_headers(MessageComposer_Camelcasecomposer_HEADERS
Laurent Montel's avatar
Laurent Montel committed
301
302
303
304
    HEADER_NAMES
    Composer
    ComposerLineEdit
    ComposerViewBase
305
306
    ComposerViewInterface
    ComposerAttachmentInterface
Laurent Montel's avatar
Laurent Montel committed
307
308
309
310
311
    SignatureController
    REQUIRED_HEADERS MessageComposer_composer_HEADERS
    PREFIX MessageComposer
    RELATIVE composer
    )
312
313

ecm_generate_headers(MessageComposer_Camelcasecomposerng_HEADERS
Laurent Montel's avatar
Laurent Montel committed
314
315
316
317
318
319
320
    HEADER_NAMES
    RichTextComposerNg
    RichTextComposerSignatures
    REQUIRED_HEADERS MessageComposer_composerng_HEADERS
    PREFIX MessageComposer
    RELATIVE composer-ng
    )
321
322

ecm_generate_headers(MessageComposer_Camelcasesender_HEADERS
Laurent Montel's avatar
Laurent Montel committed
323
324
325
326
327
328
329
    HEADER_NAMES
    AkonadiSender
    MessageSender
    REQUIRED_HEADERS MessageComposer_sender_HEADERS
    PREFIX MessageComposer
    RELATIVE sender
    )
330
331

ecm_generate_headers(MessageComposer_Camelcaseutils_HEADERS
Laurent Montel's avatar
Laurent Montel committed
332
333
334
335
336
337
338
    HEADER_NAMES
    Util
    Kleo_Util
    REQUIRED_HEADERS MessageComposer_utils_HEADERS
    PREFIX MessageComposer
    RELATIVE utils
    )
339
340

ecm_generate_headers(MessageComposer_Camelcasehelper_HEADERS
Laurent Montel's avatar
Laurent Montel committed
341
342
    HEADER_NAMES
    MessageHelper
Laurent Montel's avatar
Laurent Montel committed
343
    MessageFactoryNG
Laurent Montel's avatar
Laurent Montel committed
344
345
346
347
    REQUIRED_HEADERS MessageComposer_helper_HEADERS
    PREFIX MessageComposer
    RELATIVE helper
    )
348
349

ecm_generate_headers(MessageComposer_Camelcasesettings_HEADERS
Laurent Montel's avatar
Laurent Montel committed
350
351
352
353
354
355
    HEADER_NAMES
    MessageComposerSettings
    REQUIRED_HEADERS MessageComposer_settings_HEADERS
    PREFIX MessageComposer
    RELATIVE settings
    )
356
357

ecm_generate_headers(MessageComposer_Camelcasepart_HEADERS
Laurent Montel's avatar
Laurent Montel committed
358
359
360
361
362
363
364
365
366
    HEADER_NAMES
    TextPart
    GlobalPart
    InfoPart
    MessagePart
    REQUIRED_HEADERS MessageComposer_part_HEADERS
    PREFIX MessageComposer
    RELATIVE part
    )
367
368

ecm_generate_headers(MessageComposer_Camelcasefollowupreminder_HEADERS
Laurent Montel's avatar
Laurent Montel committed
369
370
371
    HEADER_NAMES
    FollowupReminderCreateJob
    FollowUpReminderSelectDateDialog
372
    FollowupReminder
Laurent Montel's avatar
Laurent Montel committed
373
374
375
376
    REQUIRED_HEADERS MessageComposer_followupreminder_HEADERS
    PREFIX MessageComposer
    RELATIVE followupreminder
    )
377
378

ecm_generate_headers(MessageComposer_Camelcaserecipient_HEADERS
Laurent Montel's avatar
Laurent Montel committed
379
380
381
382
383
384
385
386
    HEADER_NAMES
    Recipient
    RecipientsEditor
    RecipientLine
    REQUIRED_HEADERS MessageComposer_recipient_HEADERS
    PREFIX MessageComposer
    RELATIVE recipient
    )
387
388

ecm_generate_headers(MessageComposer_Camelcaseimagescaling_HEADERS
Laurent Montel's avatar
Laurent Montel committed
389
390
391
392
393
394
    HEADER_NAMES
    ImageScalingWidget
    REQUIRED_HEADERS MessageComposer_imagescaling_HEADERS
    PREFIX MessageComposer
    RELATIVE imagescaling
    )
395

396
397
398
399
400
401
402
403
404
405
406
407
408
ecm_generate_headers(MessageComposer_Camelcasesendlater_HEADERS
    HEADER_NAMES
    SendLaterInfo
    SendLaterDialog
    SendLaterUtil
    SendLaterJob
    SendLaterCreateJob
    SendLaterRemoveJob
    REQUIRED_HEADERS MessageComposer_sendlater_HEADERS
    PREFIX MessageComposer
    RELATIVE sendlater
)

409
ecm_generate_headers(MessageComposer_Camelcasejob_HEADERS
Laurent Montel's avatar
Laurent Montel committed
410
    HEADER_NAMES
411
412
413
    JobBase
    AbstractEncryptJob
    ContentJobBase
Laurent Montel's avatar
Laurent Montel committed
414
415
416
417
418
419
420
    InsertTextFileJob
    AttachmentJob
    SinglepartJob
    MainTextJob
    AttachmentFromPublicKeyJob
    MultipartJob
    EncryptJob
421
    AutocryptHeadersJob
422
    ProtectedHeadersJob
Laurent Montel's avatar
Laurent Montel committed
423
424
    AttachmentVcardFromAddressBookJob
    SignJob
425
    SignEncryptJob
Laurent Montel's avatar
Laurent Montel committed
426
427
428
429
    TransparentJob
    JobBase
    AliasesExpandJob
    SkeletonMessageJob
430
    AttachmentClipBoardJob
Laurent Montel's avatar
Laurent Montel committed
431
432
433
434
    REQUIRED_HEADERS MessageComposer_job_HEADERS
    PREFIX MessageComposer
    RELATIVE job
    )
Sandro Knauß's avatar
Sandro Knauß committed
435
436
437
438
439
440
441
442
443

ecm_generate_headers(MessageComposer_Camelcasedraftstatus_HEADERS
    HEADER_NAMES
    DraftStatus
    REQUIRED_HEADERS MessageComposer_draftstatus_HEADERS
    PREFIX MessageComposer
    RELATIVE draftstatus
    )

444
445
ecm_generate_pri_file(BASE_NAME MessageComposer
    LIB_NAME KF5MessageComposer
Laurent Montel's avatar
Laurent Montel committed
446
    DEPS "KMime MessageCore PimCommon Akonadi KIdentityManagement AkonadiMime Libkleo" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/MessageComposer
Laurent Montel's avatar
Laurent Montel committed
447
    )
448
449

install(FILES
Laurent Montel's avatar
Laurent Montel committed
450
    ${MessageComposer_CamelPluginEditorBase_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
451
    ${MessageComposer_Camelsnippet_HEADERS}
452
    ${MessageComposer_Camelplugineditorconverttext_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
453
    ${MessageComposer_Camelplugineditorinit_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
454
    ${MessageComposer_Camelplugineditorcheckbeforesend_HEADERS}
455
456
457
458
459
460
461
462
463
464
    ${MessageComposer_Camelcasecomposer_HEADERS}
    ${MessageComposer_Camelcasecomposerng_HEADERS}
    ${MessageComposer_Camelcasesender_HEADERS}
    ${MessageComposer_Camelcaseutils_HEADERS}
    ${MessageComposer_Camelcasehelper_HEADERS}
    ${MessageComposer_Camelcasesettings_HEADERS}
    ${MessageComposer_Camelcasepart_HEADERS}
    ${MessageComposer_Camelcasefollowupreminder_HEADERS}
    ${MessageComposer_Camelcaserecipient_HEADERS}
    ${MessageComposer_Camelcaseimagescaling_HEADERS}
465
    ${MessageComposer_Camelcasesendlater_HEADERS}
466
467
    ${MessageComposer_Camelcasejob_HEADERS}
    ${MessageComposer_Camelcaseattachement_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
468
    ${MessageComposer_Camelplugineditor_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
469
    ${MessageComposer_Camelplugineditorgrammar_HEADERS}
470
    ${MessageComposer_Camelstatusbarwidget_HEADERS}
Sandro Knauß's avatar
Sandro Knauß committed
471
    ${MessageComposer_Camelcasedraftstatus_HEADERS}
472
473
    DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/MessageComposer
    COMPONENT Devel
Laurent Montel's avatar
Laurent Montel committed
474
    )
475
476
477

install(FILES
    ${MessageComposer_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
478
    ${MessageComposer_PluginEditorBase_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
479
    ${MessageComposer_snippet_HEADERS}
480
    ${MessageComposer_plugineditorconverttext_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
481
    ${MessageComposer_plugineditorinit_HEADERS}
482
    ${MessageComposer_statusbarwidget_HEADERS}
483
484
485
486
487
488
489
490
491
492
493
494
495
    ${CMAKE_CURRENT_BINARY_DIR}/messagecomposer_export.h
    ${CMAKE_CURRENT_BINARY_DIR}/messagecomposersettings_base.h
    ${CMAKE_CURRENT_BINARY_DIR}/messagecomposer_debug.h
    ${MessageComposer_composer_HEADERS}
    ${MessageComposer_composerng_HEADERS}
    ${MessageComposer_sender_HEADERS}
    ${MessageComposer_utils_HEADERS}
    ${MessageComposer_helper_HEADERS}
    ${MessageComposer_settings_HEADERS}
    ${MessageComposer_part_HEADERS}
    ${MessageComposer_followupreminder_HEADERS}
    ${MessageComposer_recipient_HEADERS}
    ${MessageComposer_imagescaling_HEADERS}
496
    ${MessageComposer_sendlater_HEADERS}
497
498
    ${MessageComposer_attachement_HEADERS}
    ${MessageComposer_job_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
499
    ${MessageComposer_plugineditor_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
500
    ${MessageComposer_plugineditorcheckbeforesend_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
501
    ${MessageComposer_plugineditorgrammar_HEADERS}
502
503
504

    DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/messagecomposer
    COMPONENT Devel
Laurent Montel's avatar
Laurent Montel committed
505
    )
506
507
508
509
510

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

Laurent Montel's avatar
Laurent Montel committed
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
if (BUILD_QCH)
    ecm_add_qch(
        KF5MessageComposer_QCH
        NAME KF5MessageComposer
        BASE_NAME KF5MessageComposer
        VERSION ${PIM_VERSION}
        ORG_DOMAIN org.kde
        SOURCES # using only public headers, to cover only public API
        ${MessageComposer_HEADERS}
        ${MessageComposer_PluginEditorBase_HEADERS}
        ${MessageComposer_snippet_HEADERS}
        ${MessageComposer_plugineditorconverttext_HEADERS}
        ${MessageComposer_plugineditorinit_HEADERS}
        ${MessageComposer_statusbarwidget_HEADERS}
        ${MessageComposer_composer_HEADERS}
        ${MessageComposer_composerng_HEADERS}
        ${MessageComposer_sender_HEADERS}
        ${MessageComposer_utils_HEADERS}
        ${MessageComposer_helper_HEADERS}
        ${MessageComposer_settings_HEADERS}
        ${MessageComposer_part_HEADERS}
        ${MessageComposer_followupreminder_HEADERS}
        ${MessageComposer_recipient_HEADERS}
        ${MessageComposer_imagescaling_HEADERS}
        ${MessageComposer_sendlater_HEADERS}
        ${MessageComposer_attachement_HEADERS}
        ${MessageComposer_job_HEADERS}
        ${MessageComposer_plugineditor_HEADERS}
        ${MessageComposer_plugineditorcheckbeforesend_HEADERS}
        ${MessageComposer_plugineditorgrammar_HEADERS}
Sandro Knauß's avatar
Sandro Knauß committed
541
        ${MessageComposer_draftstatus_HEADERS}
Laurent Montel's avatar
Laurent Montel committed
542
543
544
545
546
547
548
549
550
551
552
553
554
        LINK_QCHS
            Qt5Core_QCH
            Qt5Gui_QCH
            Qt5Widgets_QCH
        INCLUDE_DIRS
            ${CMAKE_CURRENT_BINARY_DIR}
        BLANK_MACROS
            MESSAGECOMPOSER_EXPORT
        TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
        QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
        COMPONENT Devel
    )
endif()