title: How to define a list of files matching a pattern in CMake?
body: <p>How can I define a variable in CMake containing a list of files that match a pattern? For instance, <code>test_*.cpp</code>?</p>
  
  <p>And how can I define a variable containing a list of files that DON'T match a pattern? For instance, <code>test_*.cpp</code> should match all files EXCEPT those matched above.</p>