Warning, /pim/merkuro/src/mail/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu> 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 0004 set(merkuro_mail_SRCS 0005 mailapplication.cpp 0006 mailapplication.h 0007 mailmanager.cpp 0008 mailmanager.h 0009 mailmodel.cpp 0010 mailmodel.h 0011 helper.h 0012 helper.cpp 0013 contactimageprovider.cpp 0014 contactimageprovider.h 0015 0016 messagestatus.h 0017 messagestatus.cpp 0018 messageloader.h 0019 messageloader.cpp 0020 0021 mailkernel.h 0022 mailkernel.cpp 0023 0024 mailheadermodel.h 0025 mailheadermodel.cpp 0026 0027 mailclient.h 0028 mailclient.cpp 0029 0030 identity/identitycryptographybackend.h 0031 identity/identitycryptographybackend.cpp 0032 identity/identitycryptographyeditorbackendfactory.h 0033 identity/identitycryptographyeditorbackendfactory.cpp 0034 identity/identitykeylistmodel.h 0035 identity/identitykeylistmodel.cpp 0036 ) 0037 0038 ecm_qt_declare_logging_category(merkuro_mail_SRCS 0039 HEADER merkuro_mail_debug.h 0040 IDENTIFIER "merkuro_MAIL_LOG" 0041 CATEGORY_NAME org.kde.merkuro.mail 0042 DESCRIPTION "merkuro mail" 0043 EXPORT merkuro 0044 ) 0045 0046 add_library(merkuro_mail_static STATIC ${merkuro_mail_SRCS}) 0047 set_target_properties(merkuro_mail_static PROPERTIES POSITION_INDEPENDENT_CODE ON) 0048 target_link_libraries(merkuro_mail_static 0049 PUBLIC 0050 merkuro_lib 0051 KPim6::MessageComposer 0052 KPim6::MailCommon 0053 KPim6::MailTransport 0054 KPim6::AkonadiMime 0055 KPim6::IdentityManagementQuick 0056 KPim6::Mbox 0057 KPim6::Mime 0058 KF6::XmlGui 0059 KF6::Codecs 0060 KF6::XmlGui 0061 ) 0062 0063 ecm_add_qml_module(merkuro_mail_plugin URI "org.kde.merkuro.mail" VERSION 1.0) 0064 0065 target_sources(merkuro_mail_plugin PRIVATE 0066 mailplugin.cpp 0067 mailplugin.h 0068 ) 0069 0070 ecm_target_qml_sources(merkuro_mail_plugin SOURCES 0071 qml/MailSidebar.qml 0072 qml/FolderView.qml 0073 qml/MailComposer.qml 0074 qml/ConversationViewer.qml 0075 ) 0076 ecm_target_qml_sources(merkuro_mail_plugin 0077 PRIVATE PATH private SOURCES 0078 qml/private/AttachmentDelegate.qml 0079 qml/private/MailDelegate.qml 0080 ) 0081 0082 ecm_target_qml_sources(merkuro_mail_plugin 0083 PRIVATE PATH actions SOURCES 0084 qml/actions/NewFolderAction.qml 0085 qml/actions/DeleteFolderAction.qml 0086 qml/actions/MailItemMenu.qml 0087 ) 0088 0089 ecm_target_qml_sources(merkuro_mail_plugin 0090 PRIVATE PATH desktopactions SOURCES 0091 qml/desktopactions/openmbox.qml 0092 ) 0093 0094 ecm_target_qml_sources(merkuro_mail_plugin 0095 PRIVATE PATH mailboxselector SOURCES 0096 qml/mailboxselector/MailBoxList.qml 0097 qml/mailboxselector/MailBoxListPage.qml 0098 ) 0099 0100 ecm_target_qml_sources(merkuro_mail_plugin 0101 PRIVATE PATH mailpartview SOURCES 0102 qml/mailpartview/ICalPart.qml 0103 ) 0104 0105 target_link_libraries(merkuro_mail_plugin 0106 PUBLIC 0107 merkuro_mail_static 0108 KPim6::MimeTreeParserCore 0109 ) 0110 0111 ecm_finalize_qml_module(merkuro_mail_plugin 0112 DESTINATION ${KDE_INSTALL_QMLDIR} 0113 BUILD_SHARED_LIBS OFF) 0114 0115 #### Binary 0116 0117 add_executable(merkuro-mail 0118 main.cpp 0119 resources.qrc 0120 messagehandler.cpp 0121 messagehandler.h 0122 ) 0123 0124 target_link_libraries(merkuro-mail 0125 PRIVATE 0126 Qt::Widgets 0127 Qt::Quick 0128 Qt::QuickControls2 0129 KF6::I18n 0130 KF6::CoreAddons 0131 KF6::DBusAddons 0132 KF6::WindowSystem 0133 KF6::ConfigGui 0134 KPim6::Mime 0135 KPim6::MimeTreeParserCore 0136 ) 0137 install(TARGETS merkuro-mail ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0138 install(PROGRAMS org.kde.merkuro.mail.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0139 install(FILES org.kde.merkuro.mail.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})