Configured cmake to append folder paths of output directories to .gitignore if they exist inside the git folder.