I'm building a CMake project in VSCode (Windows, w/ mingw64 GCC toolchain), and I'm trying to execute compiled binaries from VSCode's "Terminal" tab, where I've set up MSYS2's MINGW64 bash shell by adding:
"terminal.integrated.profiles.windows": {
    "msys mingw64": {
        "path": "C:/msys64/msys2_shell.cmd",
        "args": [
            "-defterm",
            "-here",
            "-no-start",
            "-mingw64"
        ]
    }
},
to the VSCode's settings JSON, according to @SodaCris suggestion.
However, I get multiple "unable to find XXX.dll" errors as the runtime library paths are not properly configured. How do I either 1) link to the absolute paths of the required libraries (as is the default in Linux) or 2) specify the runtime library path when using the terminal (which I assume would be configuring the way the shell is called from VSCode)