CMakeLists.txt 1.2 KB
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
7
8
9
10
11
12
13
14
if (ECM_VERSION VERSION_LESS "5.68.0")
    ecm_qt_declare_logging_category(kontact_kaddressbookplugin_PART_SRCS HEADER kaddressbookplugin_debug.h IDENTIFIER KADDRESSBOOKPLUGIN_LOG CATEGORY_NAME org.kde.pim.kaddressbook_plugin)
else()
    ecm_qt_declare_logging_category(kontact_kaddressbookplugin_PART_SRCS HEADER kaddressbookplugin_debug.h IDENTIFIER KADDRESSBOOKPLUGIN_LOG CATEGORY_NAME org.kde.pim.kaddressbook_plugin
        DESCRIPTION "kaddressbook (kaddressbook kontact plugins)"
        OLD_CATEGORY_NAMES log_kaddressbook_plugin
        EXPORT KADDRESSBOOK
    )
endif()
15

Laurent Montel's avatar
Laurent Montel committed
16
qt5_add_dbus_interfaces(kontact_kaddressbookplugin_PART_SRCS ../src/org.kde.kaddressbook.xml)
17
18
19


add_library(kontact_kaddressbookplugin MODULE ${kontact_kaddressbookplugin_PART_SRCS})
20
21
22
target_link_libraries(kontact_kaddressbookplugin
    KF5::KontactInterface
)
23
24
25
26

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)