title: CMake file for a C++ project
body: <p>There is some CMake magic I don't understand. How should a CMakeLists.txt file look like for a small C++ project with directories like this:</p>
  
  <pre><code>.
  ├── bin
  └── src
      ├── src
      └── test
  
  bin      — directory for built program
  src/src  — directory for source
  src/test — directory for tests
  </code></pre>
  
  <p>The tests will need to include files from src/src.
  I'd like to manage all the operations from cmake, however at this moment I even can't cause cmake to compile file in src/c.cpp.</p>
  
  <p>Any help, links are welcome.</p>