1#include "DynamicLibraries.h"
5#include "Exceptions/FileDoesNotExistException.h"
17 string makePathToDynamicLibrary(
const filesystem::path& pathToSource)
19 if (pathToSource.has_extension())
21 return pathToSource.string();
25 filesystem::path temp(pathToSource);
26 filesystem::path parent = temp.parent_path();
27 filesystem::path fileName = temp.filename();
29 return format(
"{}/lib{}.so", parent.string(), fileName.string());
31 return format(
"{}.dll", pathToSource.string());