As reported in bug 401888, the current kcoreaddons_add_plugin CMake macro causes deprecation warnings in extra-cmake-module's KDEInstallDirs since we use an old-style install path variable (PLUGIN_INSTALL_DIR).
This should just be KDE_INSTALL_PLUGINDIR and so that's all my fix is, but since I'm not very familiar with the CMake stuff or the plugin loading code I wanted to get a review on it before I commit.