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.
 
 
 

104 lines
3.3 KiB

add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_followupreminder_agent\")
set(followupreminderagent_job_SRCS
jobs/followupreminderjob.cpp
jobs/followupreminderfinishtaskjob.cpp
jobs/followupremindershowmessagejob.cpp
)
set(followupreminderagent_SRCS
followupremindermanager.cpp
followupremindernoanswerdialog.cpp
followupreminderinfowidget.cpp
${followupreminderagent_job_SRCS}
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(followupreminderagent_SRCS HEADER followupreminderagent_debug.h IDENTIFIER FOLLOWUPREMINDERAGENT_LOG CATEGORY_NAME org.kde.pim.followupreminderagent)
else()
ecm_qt_declare_logging_category(followupreminderagent_SRCS HEADER followupreminderagent_debug.h IDENTIFIER FOLLOWUPREMINDERAGENT_LOG CATEGORY_NAME org.kde.pim.followupreminderagent
DESCRIPTION "kmail (followupreminderagent)"
OLD_CATEGORY_NAMES log_followupreminderagent
EXPORT KMAIL
)
endif()
qt5_add_dbus_adaptor(followupreminderagent_SRCS org.freedesktop.Akonadi.FollowUpReminder.xml followupreminderagent.h FollowUpReminderAgent)
qt5_add_dbus_interface(followupreminderagent_SRCS org.freedesktop.Notifications.xml notifications_interface)
qt5_add_dbus_interface(followupreminderagent_SRCS org.freedesktop.DBus.Properties.xml dbusproperties)
add_library(followupreminderagent STATIC ${followupreminderagent_SRCS})
target_link_libraries(followupreminderagent
KF5::AkonadiCore
KF5::IdentityManagement
KF5::AkonadiMime
KF5::AkonadiAgentBase
KF5::DBusAddons
KF5::XmlGui
KF5::KIOWidgets
KF5::Notifications
KF5::MailCommon
KF5::Libkdepim
KF5::I18n
KF5::CalendarCore
)
########################### Agent executable ################################
add_executable(akonadi_followupreminder_agent followupreminderagent.cpp)
target_link_libraries(akonadi_followupreminder_agent
followupreminderagent
KF5::AkonadiCore
KF5::AkonadiMime
KF5::AkonadiAgentBase
KF5::Mime
KF5::CalendarCore
KF5::DBusAddons
KF5::FollowupReminder
Qt5::Widgets
KF5::Notifications
KF5::I18n
KF5::XmlGui
KF5::Service
)
if( APPLE )
set_target_properties(akonadi_followupreminder_agent PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${kmail_SOURCE_DIR}/agents/Info.plist.template)
set_target_properties(akonadi_followupreminder_agent PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.akonadi_followupreminder_agent")
set_target_properties(akonadi_followupreminder_agent PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi Followup Reminder Agent")
endif ()
install(TARGETS akonadi_followupreminder_agent ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(FILES followupreminder.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents")
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()
install(FILES akonadi_followupreminder_agent.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
########## Configuration ##############
set(followupreminderagentconfig_SRCS
followupreminderinfoconfigwidget.cpp
)
kcoreaddons_add_plugin(followupreminderagentconfig
JSON followupreminderagentconfig.json
SOURCES ${followupreminderagentconfig_SRCS}
INSTALL_NAMESPACE akonadi/config
)
target_link_libraries(followupreminderagentconfig
followupreminderagent
KF5::AkonadiCore
KF5::XmlGui
KF5::I18n
KF5::FollowupReminder
)