CMakeLists.txt 2.49 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
  knotesselectdeletenotesdialog.cpp
)

16
17
qt_add_dbus_adaptor(kontact_knotesplugin_PART_SRCS org.kde.kontact.KNotes.xml knotes_part.h KNotesPart)
qt_add_dbus_interfaces(kontact_knotesplugin_interface_SRCS org.kde.kontact.KNotes.xml)
18

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
Laurent Montel's avatar
Laurent Montel committed
20
21
22
23
24
        DESCRIPTION "knotes (knotes kontact plugin)"
        OLD_CATEGORY_NAMES log_knoteskontactplugin
        EXPORT KNOTES
    )

25
26
27


add_library(kontact_knotesplugin MODULE ${kontact_knotesplugin_PART_SRCS} ${kontact_knotesplugin_interface_SRCS} )
Laurent Montel's avatar
Laurent Montel committed
28
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
29
30
    set_target_properties(kontact_knotesplugin PROPERTIES UNITY_BUILD ON)
endif()
31
32
33
34
35
target_link_libraries(kontact_knotesplugin
                      knotesprivate
                      KF5::CalendarCore
                      KF5::CalendarUtils
                      KF5::KontactInterface
36
                      notesharedprivate
Laurent Montel's avatar
Laurent Montel committed
37
                      KF5::DNSSD
Laurent Montel's avatar
Laurent Montel committed
38
                      KF5::Mime
Laurent Montel's avatar
Laurent Montel committed
39
                      KF5::KCMUtils
Laurent Montel's avatar
Laurent Montel committed
40
                      KF5::AkonadiWidgets
Daniel Vrátil's avatar
Daniel Vrátil committed
41
                      KF5::AkonadiNotes
42
                      KF5::ItemViews
43
                      KF5::Contacts
44
45
)

46
47
kcoreaddons_desktop_to_json(kontact_knotesplugin knotesplugin.desktop)

48
49
50
51
52
########### install files ###############

set(kcm_knotessummary_PART_SRCS kcmknotessummary.cpp )

add_library(kcm_knotessummary MODULE ${kcm_knotessummary_PART_SRCS})
53
kcoreaddons_desktop_to_json(kcm_knotessummary "kcmknotessummary.desktop" SERVICE_TYPES kcmodule.desktop)
Laurent Montel's avatar
Laurent Montel committed
54
target_link_libraries(kcm_knotessummary  KF5::PimCommonAkonadi KF5::AkonadiNotes KF5::ConfigWidgets KF5::I18n)
55
56
57
58
59
60
61


install(TARGETS kcm_knotessummary DESTINATION ${KDE_INSTALL_PLUGINDIR})

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


62
install(TARGETS kontact_knotesplugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/kontact5)
63
64
65
66
67
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)