title: Create a shared library for dlib
body: <p>Following the instructions to compile dlib using cmake (<a href="http://dlib.net/compile.html" rel="noreferrer">here</a>) generates a static dlib library:</p>
  
  <pre><code>cd examples
  mkdir build
  cd build
  cmake ..
  cmake --build . --config Release
  </code></pre>
  
  <p>How can I instruct cmake to generate a shared (.so) library instead?</p>