Out of source building (CMake)

It is always a good idea for building your projects to seperate the generated files from the build system from the source. If you are building your C/C++ projects with CMake you should execute it for this purpose with the following command on the CLI (command-line interface).

cmake -H<source-folder> -B<build-folder>

CMake will now put all its generated files in the defined build-folder and keep your code clean.