Commit ef123d95 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use macro for shorturlplugin plugins

parent d1af1afa
......@@ -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)
......@@ -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)
......@@ -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)
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment