title: Is it better to specify source files with GLOB or each file individually in CMake?
body: <p>CMake offers several ways to specify the source files for a target.
  One is to use globbing (<a href="https://cmake.org/cmake/help/latest/command/file.html" rel="noreferrer">documentation</a>), for example:</p>
  
  <pre><code>FILE(GLOB MY_SRCS dir/*)
  </code></pre>
  
  <p>Another method is to specify each file individually.</p>
  
  <p>Which way is preferred? Globbing seems easy, but I heard it has some downsides.</p>