CMakeLists.txt 1.06 KB
Newer Older
1
include_directories(${kaddressbook_SOURCE_DIR})
2

3
4
set(kontact_kaddressbookplugin_PART_SRCS
    kaddressbook_plugin.cpp
5
)
6
ecm_qt_declare_logging_category(kontact_kaddressbookplugin_PART_SRCS HEADER kaddressbookplugin_debug.h IDENTIFIER KADDRESSBOOKPLUGIN_LOG CATEGORY_NAME org.kde.pim.kaddressbook_plugin
Laurent Montel's avatar
Laurent Montel committed
7
8
9
10
        DESCRIPTION "kaddressbook (kaddressbook kontact plugins)"
        OLD_CATEGORY_NAMES log_kaddressbook_plugin
        EXPORT KADDRESSBOOK
    )
11

Laurent Montel's avatar
Laurent Montel committed
12
qt5_add_dbus_interfaces(kontact_kaddressbookplugin_PART_SRCS ../src/org.kde.kaddressbook.xml)
13
14
15


add_library(kontact_kaddressbookplugin MODULE ${kontact_kaddressbookplugin_PART_SRCS})
16
target_link_libraries(kontact_kaddressbookplugin
17
    KF5::I18n
18
19
    KF5::KontactInterface
)
20
kcoreaddons_desktop_to_json(kontact_kaddressbookplugin kaddressbookplugin.desktop)
21

22
install(TARGETS kontact_kaddressbookplugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/kontact5)
23
24
install(FILES kaddressbookplugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/kontact)
install(FILES kaddressbook.setdlg DESTINATION ${KDE_INSTALL_DATADIR}/kontact/ksettingsdialog)