I want to tell CMake to output files and folders to a different folder instead of the current folder. I\'m talking about the generated files by CMake below:
You can use the undocumented command line options -B and -H to specify your build directory and source directory respectively. So, from your project's root, you can do: