title: How to use cmake GLOB_RECURSE for only some subdirectories
body: <p>I have a source code layout that looks like this:</p>
  
  <pre><code>TopDir/
      CMakeLists.txt
      A.cpp
      A.hpp
      ...
      File/
          F1.cpp
          F1.hpp
          ...
      Section/
          S1.cpp
          S1.hpp
          ...
      Test/
          CMakeLists.txt
          TestF1S1.cpp
          TestF2S2.cpp
          ...
  </code></pre>
  
  <p>I want to capture all the <code>.cpp</code> files as source files (<code>ENDF6_SRC</code>), so in my <code>TopDir/CMakeLists.txt</code> file, I have a line that looks like this:</p>
  
  <pre><code>file(GLOB_RECURSE ENDF6_SRC ${PROJECT_SOURCE_DIR} *.cpp)
  </code></pre>
  
  <p>This grabs all the <code>.cpp</code> files in <code>TopDir/</code>, <code>File/</code>, <code>Section/</code> as expected, but also grabs all the <code>.cpp</code> files in <code>Test/</code> as well. </p>
  
  <p><strong>How can I create my <code>ENDF6_SRC</code> variable without adding the <code>.cpp</code> files from the <code>Test</code> directory?</strong> I don't want a <code>CMakeLists.txt</code> file in <code>File/</code> or <code>Section/</code>.</p>