Remember the plugin_install_dir used when installing the package. This
authorMichael Jansen <kde@michael-jansen.biz>
Mon, 26 Jul 2010 12:49:21 +0000 (14:49 +0200)
committerMichael Jansen <kde@michael-jansen.biz>
Mon, 26 Jul 2010 12:49:21 +0000 (14:49 +0200)
commitaa8f7a8f503387a1773ecc1fdeff7986a8570249
tree555569f23ef949e2bae18e06775740b870d4d7f8
parentf7a50645d572d5751ebda04484f442227f877651
Remember the plugin_install_dir used when installing the package. This
fixes the problem that grantlee failed to find its standard plugins
sometimes. More precisely if it wasn't installed into the same prefix as
qt (QCoreApplication::instance()->libraryPaths()) and QT_PLUGIN_DIRECTORY
did not contain the install prefix of grantlee.

With the currenty setup it's possible to add to the pluginPaths()

paths = engine->pluginPaths();
paths << "additional_path";  // Append
engine->setPluginPaths(path);

QStringList paths;
paths << "additional path";
paths << "additional path 2";
paths << engine->pluginPaths(); // Prepend
engine->setPluginPaths(path);

or completely overwrite the paths;
cmake/modules/GrantleeConfig.cmake.in
corelib/CMakeLists.txt
corelib/engine.cpp
corelib/engine.h
corelib/grantlee_config.h.cmake [new file with mode: 0644]