Warning, /pim/kmail/agents/unifiedmailboxagent/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: none 0002 # SPDX-License-Identifier: BSD-3-Clause 0003 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_unifiedmailbox_agent\") 0004 0005 if(BUILD_TESTING) 0006 add_subdirectory(autotests) 0007 endif() 0008 0009 0010 add_executable(akonadi_unifiedmailbox_agent) 0011 ecm_qt_declare_logging_category(akonadi_unifiedmailbox_agent HEADER unifiedmailboxagent_debug.h IDENTIFIER UNIFIEDMAILBOXAGENT_LOG CATEGORY_NAME org.kde.pim.unifiedmailboxagent 0012 DESCRIPTION "kmail (unifiedmailboxagent)" 0013 EXPORT KMAIL 0014 ) 0015 0016 kconfig_add_kcfg_files(akonadi_unifiedmailbox_agent 0017 settings.kcfgc 0018 ) 0019 0020 qt_add_dbus_adaptor(unifiedmailbox_agent_SRCS org.freedesktop.Akonadi.UnifiedMailboxAgent.xml unifiedmailboxagent.h UnifiedMailboxAgent) 0021 target_sources(akonadi_unifiedmailbox_agent PRIVATE 0022 unifiedmailbox.cpp 0023 unifiedmailboxagent.cpp 0024 unifiedmailboxmanager.cpp 0025 unifiedmailboxeditor.cpp 0026 settingsdialog.cpp 0027 mailkernel.cpp 0028 unifiedmailbox.h 0029 unifiedmailboxagent.h 0030 unifiedmailboxmanager.h 0031 unifiedmailboxeditor.h 0032 settingsdialog.h 0033 mailkernel.h 0034 ${unifiedmailbox_agent_SRCS} 0035 ) 0036 0037 #if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) 0038 # set_target_properties(akonadi_unifiedmailbox_agent PROPERTIES UNITY_BUILD ON) 0039 #endif() 0040 target_link_libraries(akonadi_unifiedmailbox_agent 0041 KPim6::AkonadiAgentBase 0042 KPim6::AkonadiMime 0043 KPim6::AkonadiWidgets 0044 KPim6::Mime 0045 KF6::I18n 0046 KPim6::IdentityManagementCore 0047 KF6::WidgetsAddons 0048 KF6::IconThemes 0049 KF6::IconWidgets 0050 KF6::ItemModels 0051 KPim6::MailCommon 0052 KF6::DBusAddons 0053 ) 0054 0055 if( APPLE ) 0056 set_target_properties(akonadi_unifiedmailbox_agent PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${kmail_SOURCE_DIR}/agents/Info.plist.template) 0057 set_target_properties(akonadi_unifiedmailbox_agent PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.KF6::UnifiedMailbox") 0058 set_target_properties(akonadi_unifiedmailbox_agent PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE PIM Unified Mailbox") 0059 endif () 0060 0061 install(TARGETS akonadi_unifiedmailbox_agent ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0062 0063 install(FILES unifiedmailboxagent.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents") 0064 0065