KDE PIM support for the p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

65 lines
1.7 KiB

set(pepagent_SRCS
pepagent.cpp
syncthread.cpp
#pepselectjob.cpp
#pepscheduler.cpp
#pepagent_debug.cpp
)
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/pepagent.kcfg org.kde.Akonadi.pEpAgent.Settings)
qt5_add_dbus_adaptor(pepagent_SRCS
${PROJECT_SOURCE_DIR}/pEpDBusAdapter/pep-introspect.xml pepagent.h pEpAgent
)
ecm_qt_declare_logging_category(pepagent_SRCS HEADER pepagent_debug.h IDENTIFIER PEPAGENT_LOG CATEGORY_NAME org.kde.pim.pepagent
DESCRIPTION "kmail (pepagent)"
OLD_CATEGORY_NAMES log_pepagent
EXPORT KMAIL
)
add_executable(akonadi_pep_agent ${pepagent_SRCS})
target_link_libraries(akonadi_pep_agent
KF5::AkonadiCore
KF5::AkonadiMime
KF5::Mime
KF5::MailTransportAkonadi
KF5::AkonadiAgentBase
KF5::MailTransportAkonadi
KF5::I18n
KF5::Notifications
KF5::GrantleeTheme
Grantlee5::Templates
KF5::MailCommon
Qt5::Core
Qt5::Network
KF5::AkonadiCore
KF5::IMAP
KF5::MailTransport
KF5::KIOWidgets
KF5::Mime
KF5::AkonadiMime
KF5::IdentityManagement
KF5::AkonadiAgentBase
KF5::I18n
KF5::WindowSystem
KF5::PimCommon
KF5::Libkdepim
pEpEngine
pEpMIME
pEpAdapter
sequoia_ffi
sequoia_openpgp_ffi
)
set_property(TARGET akonadi_pep_agent PROPERTY CXX_STANDARD 17)
configure_file(pepagent.service.in ${CMAKE_CURRENT_BINARY_DIR}/pepagent.service)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pepagent.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR})
install( TARGETS akonadi_pep_agent ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES pepagent.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
install( FILES akonadi_pep_agent.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )