1 project(followupreminderagent)
5 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_followupreminder_agent\")
7 set(followupreminderlib_SRCS
8 followupreminderinfo.cpp
9 followupreminderutil.cpp
12 kconfig_add_kcfg_files(followupreminderlib_SRCS
13 settings/followupreminderagentsettings.kcfgc
17 add_library( followupreminder ${followupreminderlib_SRCS} )
18 generate_export_header(followupreminder BASE_NAME followupreminder)
19 target_link_libraries( followupreminder KF5::CoreAddons KF5::ConfigGui Qt5::DBus )
20 target_include_directories(followupreminder PUBLIC $<TARGET_PROPERTY:KF5::AkonadiCore,INTERFACE_INCLUDE_DIRECTORIES>)
21 set_target_properties( followupreminder PROPERTIES VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION} )
24 install( TARGETS followupreminder ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
27 set(followupreminderagent_job_SRCS
28 jobs/followupreminderjob.cpp
29 jobs/followupreminderfinishtaskjob.cpp
30 jobs/followupremindershowmessagejob.cpp
33 set(followupreminderagent_SRCS
34 followupreminderagent_debug.cpp
35 followupreminderagent.cpp
36 followupremindermanager.cpp
37 followupreminderinfodialog.cpp
38 followupremindernoanswerdialog.cpp
39 followupreminderinfowidget.cpp
40 ${followupreminderagent_job_SRCS}
43 qt5_add_dbus_adaptor(followupreminderagent_SRCS org.freedesktop.Akonadi.FollowUpReminder.xml followupreminderagent.h FollowUpReminderAgent)
45 add_executable(akonadi_followupreminder_agent ${followupreminderagent_SRCS})
47 target_link_libraries(akonadi_followupreminder_agent
59 set_target_properties(akonadi_followupreminder_agent PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/Info.plist.template)
60 set_target_properties(akonadi_followupreminder_agent PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.akonadi_followupreminder_agent")
61 set_target_properties(akonadi_followupreminder_agent PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi Followup Reminder Agent")
64 install(TARGETS akonadi_followupreminder_agent ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
66 install(FILES followupreminder.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents")
69 add_subdirectory(autotests)
72 install(FILES akonadi_followupreminder_agent.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )