Putting build products (Binaries, Intermediate and Saved folders) outside project tree

Hello,

I have quite a large project, and compile the engine from source.
Build products from both the engine and project, both code and assets (code being the worst offender, taking the engine into account), take up dozens of gigabytes, especially considering that I build for multiple platforms.
In fact, they take up so much space that my SSD where the project resides gets filled up.

So, I would like to have the Binaries, Intermediate, and Saved folders moved to my secondary hard drive, outside of the project tree, which would stay on my SSD. Is there a way to do this ?

Thanks in advance.