title: Compiling larger C++ projects in VSCode
body: <p>Im trying to compile a C++ project using MinGW and can compile a simple main.cpp file with hello world without problems using <code>g++ main.cpp -o main</code> and also with external libraries using <code>main.cpp extlib.cpp -o main</code>.
  But say im working on a rather large project with 10s of .cpp files organised inside of different files, how can I get the compiler to find all the cpp files that are needed? I know i can use main.cpp libs/*.cpp -o main but this will only compile all the source files inside of libs but not inside folders in libs.</p>
  <p>Ive looked into make and cmake but dont understand how those automate the process if you still have to manually enter the directories. Is there no way to simply hit compile or at least a command line command to compile all the needed files inside a directory? This seems to work with #include  without issues?</p>