Although I have been searching for this answer online for quite some time, I could not find a single answer to this question.
When i run cmake on a CMakeLists.txt file I have, all the generated files are created next to the project file.
If i add a -B arg, the generated files are created within the specified directory.
What is the best way to define that -Bbehavior inside the CMakeLists.txt?