MCPcopy Create free account
hub / github.com/MITK/MITK / initializeLibraryPaths

Method initializeLibraryPaths

Modules/AppUtil/src/mitkBaseApplication.cpp:892–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890 }
891
892 void BaseApplication::initializeLibraryPaths()
893 {
894 QStringList suffixes;
895 suffixes << "plugins";
896
897#ifdef Q_OS_WINDOWS
898 suffixes << "bin/plugins";
899 #ifdef CMAKE_INTDIR
900 suffixes << "bin/" CMAKE_INTDIR "/plugins";
901 #endif
902#else
903 suffixes << "lib/plugins";
904 #ifdef CMAKE_INTDIR
905 suffixes << "lib/" CMAKE_INTDIR "/plugins";
906 #endif
907#endif
908
909#ifdef Q_OS_MAC
910 suffixes << "../../plugins";
911#endif
912
913 // We add a couple of standard library search paths for plug-ins
914 QDir appDir(QCoreApplication::applicationDirPath());
915
916 // Walk one directory up and add bin and lib sub-dirs; this might be redundant
917 appDir.cdUp();
918
919 for (const auto& suffix : std::as_const(suffixes))
920 ctkPluginFrameworkLauncher::addSearchPath(appDir.absoluteFilePath(suffix));
921 }
922
923 int BaseApplication::main(const std::vector<std::string> &args)
924 {

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected