title: Cmake building two projects
body: <p>I want to build two projects using cmake (A library and sandbox application using that library).</p>
  <p>I'm currently having the following folder structure:</p>
  <pre><code>-- yanthra_engine
   |
    -- CMakeLists.txt
    -- lib
    -- ...
  -- sandbox
   |
    -- CMakeLists.txt
    -- out
    -- ...
  </code></pre>
  <p>The yantra_engine builds a library where as sandbox builds an executable(using the above mentioned library).
  Should I keep full fledged CMakeLists files for both the projects? Is there any efficient folder structure to follow?</p>
  <p>I would like the library to build automatically when building my sandbox application, but not vice-versa.</p>