Use kcoreaddons_add_plugin

Authored by wojnilowicz on Thu, Mar 8, 6:44 PM.



This patch steals idea from D9710.
The difference in regard to the other patch is:

  1. right .json file is used for every plugin,
  2. no redundant paths are added in code (only build system is modified),
  3. no two different paths for installing plugins,
  4. all plugins get stored in bin directory after build.

More about it can be red on KF5CoreAddonsMacros

Loading plugins without plugins path set is not working for me, but I think it should work for someone according to QCoreApplication::libraryPaths()

Diff Detail

R261 KMyMoney
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
wojnilowicz requested review of this revision.Thu, Mar 8, 6:44 PM
wojnilowicz created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Sun, Mar 18, 9:42 AM
This revision was automatically updated to reflect the committed changes.