summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-17 05:33:02 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-17 05:33:02 (GMT)
commitd1af1afac44a638c1c8e8f7ee669fe02ac3d9b80 (patch)
tree0563649449d3666ba89e2a393542a616560ba44d
parenta0bf5e084520eb7dd83aa10ac703d43ceb615289 (diff)
Use macro here too
-rw-r--r--plugins/customtoolsplugins/shorturlplugin/CMakeLists.txt5
-rw-r--r--plugins/customtoolsplugins/translatorplugin/CMakeLists.txt5
2 files changed, 4 insertions, 6 deletions
diff --git a/plugins/customtoolsplugins/shorturlplugin/CMakeLists.txt b/plugins/customtoolsplugins/shorturlplugin/CMakeLists.txt
index e29d107..ad70971 100644
--- a/plugins/customtoolsplugins/shorturlplugin/CMakeLists.txt
+++ b/plugins/customtoolsplugins/shorturlplugin/CMakeLists.txt
@@ -31,12 +31,11 @@ set(pimcommon_shorturlplugin_shorturllib_SRCS
shorturl/shorturlengineplugin/shorturlenginepluginmanager.cpp
)
-add_library(pimcommon_shorturlplugin MODULE ${pimcommon_shorturlplugin_SRCS} ${pimcommon_shorturlplugin_shorturllib_SRCS})
+kcoreaddons_add_plugin(pimcommon_shorturlplugin JSON pimcommon_shorturlplugin.json SOURCES
+ ${pimcommon_shorturlplugin_SRCS} ${pimcommon_shorturlplugin_shorturllib_SRCS} INSTALL_NAMESPACE pimcommon)
target_link_libraries(pimcommon_shorturlplugin
KF5::PimCommon KF5::XmlGui KF5::Completion KF5::KIOWidgets KF5::Libkdepim shorturlpluginprivate KF5::I18n
)
-install(TARGETS pimcommon_shorturlplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon)
-
add_subdirectory(shorturl)
diff --git a/plugins/customtoolsplugins/translatorplugin/CMakeLists.txt b/plugins/customtoolsplugins/translatorplugin/CMakeLists.txt
index 134e5fd..65a4d37 100644
--- a/plugins/customtoolsplugins/translatorplugin/CMakeLists.txt
+++ b/plugins/customtoolsplugins/translatorplugin/CMakeLists.txt
@@ -3,7 +3,8 @@ set(pimcommon_translatorplugin_SRCS
translatorview.cpp
)
-add_library(pimcommon_translatorplugin MODULE ${pimcommon_translatorplugin_SRCS})
+kcoreaddons_add_plugin(pimcommon_translatorplugin JSON pimcommon_translatorplugin.json SOURCES
+ ${pimcommon_translatorplugin_SRCS} INSTALL_NAMESPACE pimcommon)
target_link_libraries(pimcommon_translatorplugin
KF5::PimCommon
@@ -11,5 +12,3 @@ target_link_libraries(pimcommon_translatorplugin
KF5::XmlGui
KF5::I18n
)
-
-install(TARGETS pimcommon_translatorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon)