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

install in pim<version>

parent 6d26c4ba
Pipeline #183021 passed with stage
in 18 minutes and 38 seconds
kcoreaddons_add_plugin(pimcommon_isgdshorturlengineplugin INSTALL_NAMESPACE pimcommon/shorturlengine)
kcoreaddons_add_plugin(pimcommon_isgdshorturlengineplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/pimcommon/shorturlengine)
target_sources(pimcommon_isgdshorturlengineplugin PRIVATE
isgdshorturlengineplugin.cpp
isgdshorturlengineinterface.cpp
......
......@@ -37,7 +37,8 @@ public:
void ShortUrlEnginePluginManagerPrivate::initializePlugins()
{
const QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("pimcommon/shorturlengine"));
const QVector<KPluginMetaData> plugins =
KPluginMetaData::findPlugins(QStringLiteral("pim" QT_STRINGIFY(QT_VERSION_MAJOR)) + QStringLiteral("/pimcommon/shorturlengine"));
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QVectorIterator<KPluginMetaData> i(plugins);
......
......@@ -4,7 +4,7 @@ set(pimcommon_tinyplugin_SRCS
)
kcoreaddons_add_plugin(pimcommon_tinyurlengineplugin SOURCES
${pimcommon_tinyplugin_SRCS} INSTALL_NAMESPACE pimcommon/shorturlengine)
${pimcommon_tinyplugin_SRCS} INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/pimcommon/shorturlengine)
target_link_libraries(pimcommon_tinyurlengineplugin
......
......@@ -4,7 +4,7 @@ set(pimcommon_triopabshorturlengineplugin_SRCS
)
kcoreaddons_add_plugin(pimcommon_triopabshorturlengineplugin SOURCES
${pimcommon_triopabshorturlengineplugin_SRCS} INSTALL_NAMESPACE pimcommon/shorturlengine)
${pimcommon_triopabshorturlengineplugin_SRCS} INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/pimcommon/shorturlengine)
target_link_libraries(pimcommon_triopabshorturlengineplugin
KF5::Service KF5::I18n Qt${QT_MAJOR_VERSION}::Network KF5::CoreAddons shorturlpluginprivate Qt${QT_MAJOR_VERSION}::Gui
......
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