qca/unittest/fixpaths.include
Brad Hards a2ae0126a3 Revert previous change - not required after all.
svn path=/trunk/kdesupport/qca/; revision=519874
2006-03-18 04:59:59 +00:00

16 lines
581 B
Plaintext

// This is some boilerplate to ensure that we can load
// plugins from (a slightly hacked) build directory
//
// It is intended that this be #include'd from an init
// routine of some kind.
QStringList libpaths = QCoreApplication::libraryPaths();
// we prepend, because we prefer the uninstalled version
libpaths.prepend(QString("../../plugins/qca-openssl"));
libpaths.prepend(QString("../../plugins/qca-botan"));
libpaths.prepend(QString("../../plugins/qca-gcrypt"));
// you can add more paths here...
QCoreApplication::setLibraryPaths(libpaths);