Add support for uninstalled plugins in kcoreaddons_add_plugin
ClosedPublic

Authored by elvisangelaccio on Aug 16 2017, 1:57 PM.

Details

Summary

If find_package(ECM 5.38) or higher was called, output the plugin in a
INSTALL_NAMESPACE subfolder of the "bin" folder.

This way users of the kcoreaddons_add_plugin macro don't have to manually
set the LIBRARY_OUTPUT_DIRECTORY target property (in order to make the
plugin work even if uninstalled).

Diff Detail

Repository
R244 KCoreAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 16 2017, 1:57 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
elvisangelaccio retitled this revision from Add support for uninstalled plugin in kcoreaddons_add_plugin to Add support for uninstalled plugins in kcoreaddons_add_plugin.Aug 16 2017, 1:57 PM
dfaure accepted this revision.Aug 16 2017, 2:06 PM

Oh wow, even more magic, to make it even easier. Cool !

Please make sure to document the solution in the wiki - and feel free to port KIO to it ;-)

This revision is now accepted and ready to land.Aug 16 2017, 2:06 PM
This revision was automatically updated to reflect the committed changes.