summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-12 07:28:25 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-12 07:28:25 (GMT)
commit11bf7ac7332427adcdd0f17b6fd93e937962ea6c (patch)
treedbbfea2b1bc850b94d627f7ec84a03dac3403d63
parent6dcca06208464c6ae83d26c4bfb61d053015f676 (diff)
Use kcoreaddons_add_plugin
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt b/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt
index 5f50144..b4ee3a2 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt
+++ b/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt
@@ -8,14 +8,12 @@ set(messageviewer_externalscriptplugin_SRCS
)
ecm_qt_declare_logging_category(messageviewer_externalscriptplugin_SRCS HEADER externalscriptplugin_debug.h IDENTIFIER EXTERNALSCRIPTPLUGIN_LOG CATEGORY_NAME log_externalscriptplugin)
-add_library(messageviewer_externalscriptplugin MODULE ${messageviewer_externalscriptplugin_SRCS})
+kcoreaddons_add_plugin(messageviewer_externalscriptplugin JSON messageviewer_externalscriptplugin.json SOURCES ${messageviewer_externalscriptplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_externalscriptplugin
KF5::MessageViewer KF5::XmlGui KF5::I18n
)
-install(TARGETS messageviewer_externalscriptplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
-
if (KDEPIMADDONS_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()