summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-17 05:35:10 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-17 05:35:10 (GMT)
commitef123d95b87596dd3adb656357ffed7e9814907c (patch)
tree50bcaf3f29df90ebafcee1ebf483994edb609235
parentd1af1afac44a638c1c8e8f7ee669fe02ac3d9b80 (diff)
Use macro for shorturlplugin plugins
-rw-r--r--plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/isgdshorturlengineplugin/CMakeLists.txt5
-rw-r--r--plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/tinyurlengineplugin/CMakeLists.txt6
-rw-r--r--plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/triopabshorturlengineplugin/CMakeLists.txt5
-rw-r--r--plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/ur1cashorturlengineplugin/CMakeLists.txt5
4 files changed, 9 insertions, 12 deletions
diff --git a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/isgdshorturlengineplugin/CMakeLists.txt b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/isgdshorturlengineplugin/CMakeLists.txt
index e883b2f..9a7d82a 100644
--- a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/isgdshorturlengineplugin/CMakeLists.txt
+++ b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/isgdshorturlengineplugin/CMakeLists.txt
@@ -4,11 +4,10 @@ set(pimcommon_isgdshorturlengineplugin_SRCS
)
ecm_qt_declare_logging_category(pimcommon_isgdshorturlengineplugin_SRCS HEADER isgdshorturlengineplugin_debug.h IDENTIFIER ISGDSHORTURLENGINEPLUGIN_LOG CATEGORY_NAME log_isgdshorturlengineplugin)
-add_library(pimcommon_isgdshorturlengineplugin MODULE ${pimcommon_isgdshorturlengineplugin_SRCS})
+kcoreaddons_add_plugin(pimcommon_isgdshorturlengineplugin JSON pimcommon_isgdshorturlengineplugin.json SOURCES
+ ${pimcommon_isgdshorturlengineplugin_SRCS} INSTALL_NAMESPACE pimcommon)
target_link_libraries(pimcommon_isgdshorturlengineplugin
KF5::Service KF5::I18n Qt5::Network KF5::CoreAddons shorturlpluginprivate
)
-install(TARGETS pimcommon_isgdshorturlengineplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon)
-
diff --git a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/tinyurlengineplugin/CMakeLists.txt b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/tinyurlengineplugin/CMakeLists.txt
index dc17fa0..9997336 100644
--- a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/tinyurlengineplugin/CMakeLists.txt
+++ b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/tinyurlengineplugin/CMakeLists.txt
@@ -3,11 +3,11 @@ set(pimcommon_tinyplugin_SRCS
tinyurlengineinterface.cpp
)
-add_library(pimcommon_tinyurlengineplugin MODULE ${pimcommon_tinyplugin_SRCS})
+kcoreaddons_add_plugin(pimcommon_tinyurlengineplugin JSON pimcommon_tinyurlengineplugin.json SOURCES
+ ${pimcommon_tinyplugin_SRCS} INSTALL_NAMESPACE pimcommon)
+
target_link_libraries(pimcommon_tinyurlengineplugin
KF5::Service KF5::I18n Qt5::Network KF5::CoreAddons shorturlpluginprivate
)
-install(TARGETS pimcommon_tinyurlengineplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon)
-
diff --git a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/triopabshorturlengineplugin/CMakeLists.txt b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/triopabshorturlengineplugin/CMakeLists.txt
index 18e7c0a..a4e3819 100644
--- a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/triopabshorturlengineplugin/CMakeLists.txt
+++ b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/triopabshorturlengineplugin/CMakeLists.txt
@@ -3,11 +3,10 @@ set(pimcommon_triopabshorturlengineplugin_SRCS
triopabshorturlengineinterface.cpp
)
-add_library(pimcommon_triopabshorturlengineplugin MODULE ${pimcommon_triopabshorturlengineplugin_SRCS})
+kcoreaddons_add_plugin(pimcommon_triopabshorturlengineplugin JSON pimcommon_triopabshorturlengineplugin.json SOURCES
+ ${pimcommon_triopabshorturlengineplugin_SRCS} INSTALL_NAMESPACE pimcommon)
target_link_libraries(pimcommon_triopabshorturlengineplugin
KF5::Service KF5::I18n Qt5::Network KF5::CoreAddons shorturlpluginprivate
)
-install(TARGETS pimcommon_triopabshorturlengineplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon)
-
diff --git a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/ur1cashorturlengineplugin/CMakeLists.txt b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/ur1cashorturlengineplugin/CMakeLists.txt
index bff28c4..c96f3cd 100644
--- a/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/ur1cashorturlengineplugin/CMakeLists.txt
+++ b/plugins/customtoolsplugins/shorturlplugin/shorturl/shorturlengineplugin/ur1cashorturlengineplugin/CMakeLists.txt
@@ -5,11 +5,10 @@ set(pimcommon_ur1cashorturlengineplugin_SRCS
ecm_qt_declare_logging_category(pimcommon_ur1cashorturlengineplugin_SRCS HEADER ur1cashorturlengineplugin_debug.h
IDENTIFIER UR1CASHORTURLENGINEPLUGIN_LOG CATEGORY_NAME log_ur1cashorturlengineplugin)
-add_library(pimcommon_ur1cashorturlengineplugin MODULE ${pimcommon_ur1cashorturlengineplugin_SRCS})
+kcoreaddons_add_plugin(pimcommon_ur1cashorturlengineplugin JSON pimcommon_ur1cashorturlengineplugin.json SOURCES
+ ${pimcommon_ur1cashorturlengineplugin_SRCS} INSTALL_NAMESPACE pimcommon)
target_link_libraries(pimcommon_ur1cashorturlengineplugin
KF5::Service KF5::I18n Qt5::Network KF5::CoreAddons shorturlpluginprivate
)
-install(TARGETS pimcommon_ur1cashorturlengineplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon)
-