summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-16 10:18:04 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-16 12:10:20 (GMT)
commitd445185c5ebf8b5648722e2c7cddb3687686a008 (patch)
tree97ce166f459a2ebb1cad97769c69c74ca2929064
parent920531e6ddae836e3d1f83aefcd4c03f3dbff2c1 (diff)
USe new macro
-rw-r--r--plugins/messageviewerplugins/createtodoplugin/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/messageviewerplugins/createtodoplugin/CMakeLists.txt b/plugins/messageviewerplugins/createtodoplugin/CMakeLists.txt
index 96d539d..f992385 100644
--- a/plugins/messageviewerplugins/createtodoplugin/CMakeLists.txt
+++ b/plugins/messageviewerplugins/createtodoplugin/CMakeLists.txt
@@ -5,11 +5,12 @@ set(messageviewer_createtodoplugin_SRCS
createtodojob.cpp
)
ecm_qt_declare_logging_category(messageviewer_createtodoplugin_SRCS HEADER createtodoplugin_debug.h IDENTIFIER CREATETODOPLUGIN_LOG CATEGORY_NAME log_createtodoplugin)
-add_library(messageviewer_createtodoplugin MODULE ${messageviewer_createtodoplugin_SRCS})
+
+kcoreaddons_add_plugin(messageviewer_createtodoplugin JSON messageviewer_createtodoplugin.json SOURCES
+ ${messageviewer_createtodoplugin_SRCS} INSTALL_NAMESPACE messageviewer)
+
target_link_libraries(messageviewer_createtodoplugin
KF5::MessageViewer KF5::XmlGui KF5::CalendarCore KF5::IncidenceEditor
)
-install(TARGETS messageviewer_createtodoplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
-