qca/unittest/fixpaths.include
Brad Hards 0012b83b0e openssl -> ossl conversion.
svn path=/trunk/kdesupport/qca/; revision=705891
2007-08-28 20:26:26 +00:00

16 lines
578 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-ossl"));
libpaths.prepend(QString("../../plugins/qca-botan"));
libpaths.prepend(QString("../../plugins/qca-gcrypt"));
// you can add more paths here...
QCoreApplication::setLibraryPaths(libpaths);