title: Automatically add all files in a folder to a target using CMake?
body: <p>I am considering switching a cross platform project from separate build management systems in Visual C++, XCode and makefiles to CMake.</p>
  
  <p>One essential feature I need is to add automatically all files in a directory to a target. While this is easy to do with make, it is not easily doable with Visual C++ and XCode (correct me if I am wrong). Is it possible to do it in directly in CMake? How?</p>