title: CMake with subdirectories
body: <p>I'm trying to set up my project to compile correctly using CMake. </p>
  
  <p>My directory looks like this: </p>
  
  <pre><code>root
   |- bin
   |   |- // Where I want to build CMake from - using 'cmake ..'
   |- build
   |   |-
   |- include
   |   |- database
   |   |    |- database.h
   |- src
       |- database
       |    |- database.cpp
       |- main
            |- main.cpp
  </code></pre>
  
  <p>My sub-directories will definitely grow as my project grows larger and figured CMake would probably a good idea to learn. At the moment I can only get CMake to work with no sub-directories inside my src/. However, I do expect this project to grow into many sub-directories.  </p>
  
  <p>Would I need multiple <strong>CMakeLists.txt</strong> inside each directory with .cpp files? Can anyone point me in the right direction?</p>
  
  <p>Thank you!</p>