Fix include interface, the headers include Akonadi stuff.
[kdepim.git] / agents / followupreminderagent / CMakeLists.txt
blob4071cc5a981ddc4d507233f26b099f7fdb7790e6
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
48   KF5::AkonadiCore
49   KF5::AkonadiMime
50   KF5::AkonadiAgentBase
51   KF5::Mime
52   KF5::CalendarCore
53   KF5::DBusAddons
54   followupreminder
55   Qt5::Widgets
58 if( APPLE )
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")
62 endif ()
64 install(TARGETS akonadi_followupreminder_agent ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
66 install(FILES followupreminder.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents")
68 if (BUILD_TESTING)
69    add_subdirectory(autotests)
70 endif()
72 install(FILES akonadi_followupreminder_agent.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )