title: How would I build and link an external library using CMake?
body: <p>To start off, I should say that I've seen the answers on questions that were similar to mine, yet none of them seem to make sense to me. Here goes:</p>
  
  <p>Say I have the following simple CMakeLists:</p>
  
  <pre><code>cmake_minimum_required (VERSION 2.8)
  project (Example)
  add_executable (Example Main.cpp)
  </code></pre>
  
  <p>I would then like to link a library that already has its own CMakeLists (for example, <a href="https://github.com/glfw/glfw" rel="nofollow">glfw</a>) against <code>Example</code>. Of course, this brings into question how to properly set up the build order.</p>
  
  <p>How would I go about doing this?</p>