CMakeLists.txt 2.06 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11



########### next target ###############
set(kontact_knotesplugin_PART_SRCS
  knotes_plugin.cpp
  knotes_part.cpp
  summarywidget.cpp
  knotesiconview.cpp
  knoteslistwidgetsearchline.cpp
  knoteswidget.cpp
12
  knoteseditdialog.cpp
13
14
15
16
17
18
  knotesselectdeletenotesdialog.cpp
)

qt5_add_dbus_adaptor(kontact_knotesplugin_PART_SRCS org.kde.kontact.KNotes.xml knotes_part.h KNotesPart)
qt5_add_dbus_interfaces(kontact_knotesplugin_interface_SRCS org.kde.kontact.KNotes.xml)

Laurent Montel's avatar
Laurent Montel committed
19
ecm_qt_declare_logging_category(kontact_knotesplugin_PART_SRCS HEADER knotes_kontact_plugin_debug.h IDENTIFIER KNOTES_KONTACT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.knoteskontactplugin)
20
21
22
23


add_library(kontact_knotesplugin MODULE ${kontact_knotesplugin_PART_SRCS} ${kontact_knotesplugin_interface_SRCS} )

24
25
26
27
28
target_link_libraries(kontact_knotesplugin
                      knotesprivate
                      KF5::CalendarCore
                      KF5::CalendarUtils
                      KF5::KontactInterface
Laurent Montel's avatar
Laurent Montel committed
29
                      KF5::Libkdepim 
30
                      notesharedprivate
Laurent Montel's avatar
Laurent Montel committed
31
                      KF5::DNSSD
Laurent Montel's avatar
Laurent Montel committed
32
                      KF5::Mime
Laurent Montel's avatar
Laurent Montel committed
33
                      KF5::KCMUtils
Laurent Montel's avatar
Laurent Montel committed
34
                      KF5::AkonadiWidgets
Daniel Vrátil's avatar
Daniel Vrátil committed
35
                      KF5::AkonadiNotes
36
		      KF5::Contacts
37
38
39
40
41
42
43
44
)

########### install files ###############

set(kcm_knotessummary_PART_SRCS kcmknotessummary.cpp )

add_library(kcm_knotessummary MODULE ${kcm_knotessummary_PART_SRCS})

Laurent Montel's avatar
Laurent Montel committed
45
target_link_libraries(kcm_knotessummary  KF5::PimCommonAkonadi KF5::AkonadiNotes KF5::ConfigWidgets KF5::I18n)
46
47
48
49
50
51
52
53
54
55
56
57
58


install(TARGETS kcm_knotessummary DESTINATION ${KDE_INSTALL_PLUGINDIR})

install(FILES kcmknotessummary.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})


install(TARGETS kontact_knotesplugin DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES knotes_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/knotes)
install(FILES knotesplugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/kontact)
install(FILES org.kde.kontact.KNotes.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR})

install(FILES knotes.setdlg DESTINATION ${KDE_INSTALL_DATADIR}/kontact/ksettingsdialog)