CMakeLists.txt 982 Bytes
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
17
18
target_link_libraries(kontact_kaddressbookplugin
    KF5::KontactInterface
)
19
20
21
22

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