CMakeLists.txt 832 Bytes
Newer Older
1
include_directories(${kaddressbook_SOURCE_DIR})
2

3
4
set(kontact_kaddressbookplugin_PART_SRCS
    kaddressbook_plugin.cpp
5
)
Laurent Montel's avatar
Laurent Montel committed
6
ecm_qt_declare_logging_category(kontact_kaddressbookplugin_PART_SRCS HEADER kaddressbookplugin_debug.h IDENTIFIER KADDRESSBOOKPLUGIN_LOG CATEGORY_NAME org.kde.pim.kaddressbook_plugin)
7

Laurent Montel's avatar
Laurent Montel committed
8
qt5_add_dbus_interfaces(kontact_kaddressbookplugin_PART_SRCS ../src/org.kde.kaddressbook.xml)
9
10
11


add_library(kontact_kaddressbookplugin MODULE ${kontact_kaddressbookplugin_PART_SRCS})
12
13
14
target_link_libraries(kontact_kaddressbookplugin
    KF5::KontactInterface
)
15
16
17
18

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)