title: compiling multiple cpp files
body: <p>I am writing c++ in notepad++ using nppexec plugin and compiling with minGW.</p>
  
  <p>I have a folder structure of:</p>
  
  <pre><code>projckt/
  - main.cpp
  - head/
  -- vtk.h
  - src/
  -- vtk/
  --- vtkFile1.cpp
  --- vtkFile2.cpp
  </code></pre>
  
  <p>How do I compile and link? For my "hello world" scripts I used:</p>
  
  <pre><code>npp_save
  cd "$(CURRENT_DIRECTORY)"
  g++ $(FILE_NAME) -std=c++11 -o $(NAME_PART)
  NPP_RUN $(NAME_PART)
  </code></pre>
  
  <p>This works fine, I want a solution where I don't have to add a new .cpp file to the command when I create one. I have tried:</p>
  
  <pre><code>npp_save
  cd "$(CURRENT_DIRECTORY)"
  g++ *.cpp -std=c++11 -o $(NAME_PART)
  NPP_RUN $(NAME_PART)
  </code></pre>
  
  <p>It seems that the <code>.cpp</code> files in the sub directories is not included. Is there a way similar to copying subtree folders in unix <code>cp -r</code>.</p>