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
2.0 KiB
65 lines
2.0 KiB
add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_sendlater_agent\") |
|
|
|
if(BUILD_TESTING) |
|
add_subdirectory(tests) |
|
add_subdirectory(autotests) |
|
endif() |
|
|
|
set(sendlater_common_SRCS) |
|
ecm_qt_declare_logging_category(sendlater_common_SRCS HEADER sendlateragent_debug.h IDENTIFIER SENDLATERAGENT_LOG CATEGORY_NAME org.kde.pim.sendlateragent) |
|
|
|
set(sendlateragentconfig_SRCS |
|
sendlaterconfiguredialog.cpp |
|
sendlaterconfigurewidget.cpp |
|
) |
|
|
|
set(sendlateragent_SRCS |
|
${sendlateragentconfig_SRCS} |
|
${sendlater_common_SRCS} |
|
sendlateragent.cpp |
|
sendlatermanager.cpp |
|
sendlaterjob.cpp |
|
sendlaterremovemessagejob.cpp |
|
) |
|
|
|
|
|
qt5_add_dbus_adaptor(sendlateragent_SRCS org.freedesktop.Akonadi.SendLaterAgent.xml sendlateragent.h SendLaterAgent) |
|
|
|
ki18n_wrap_ui(sendlateragent_SRCS ui/sendlaterconfigurewidget.ui) |
|
|
|
add_executable(akonadi_sendlater_agent ${sendlateragent_SRCS}) |
|
|
|
target_link_libraries(akonadi_sendlater_agent |
|
KF5::SendLater |
|
KF5::AkonadiCore |
|
KF5::AkonadiMime |
|
KF5::MailTransportAkonadi |
|
KF5::Mime |
|
KF5::MessageComposer |
|
KF5::MessageCore |
|
KF5::PimCommon |
|
KF5::AkonadiAgentBase |
|
KF5::DBusAddons |
|
KF5::WindowSystem |
|
KF5::XmlGui |
|
KF5::Notifications |
|
KF5::IconThemes |
|
KF5::I18n |
|
) |
|
|
|
if( APPLE ) |
|
set_target_properties(akonadi_sendlater_agent PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${kmail_SOURCE_DIR}/agents/Info.plist.template) |
|
set_target_properties(akonadi_sendlater_agent PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.KF5::SendLater") |
|
set_target_properties(akonadi_sendlater_agent PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi Send Later") |
|
endif () |
|
|
|
install(TARGETS akonadi_sendlater_agent ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) |
|
|
|
install(FILES sendlateragent.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents") |
|
install(FILES akonadi_sendlater_agent.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} ) |
|
|
|
#kcoreaddons_add_plugin(sendlateragentconfig |
|
# JSON sendlateragentconfig.json |
|
# SOURCES ${sendlateragentconfig_SRCS} |
|
# INSTALL_NAMESPACE akonadi/config |
|
#)
|
|
|