title: How to create a shared library with cmake?
body: <p>I have written a library that I used to compile using a self-written Makefile, but now I want to switch to cmake. The tree looks like this (I removed all the irrelevant files):</p>
  
  <pre><code>.
  ├── include
  │   ├── animation.h
  │   ├── buffers.h
  │   ├── ...
  │   ├── vertex.h
  │   └── world.h
  └── src
      ├── animation.cpp
      ├── buffers.cpp
      ├── ...
      ├── vertex.cpp
      └── world.cpp
  </code></pre>
  
  <p>So what I am trying to do is just to compile the source into a shared library and then install it with the header files.</p>
  
  <p>Most examples that I have found compile executables with some shared libraries but never just a plain shared library.
  It would also be helpful if someone could just tell me a very simple library that uses cmake, so I can use this as an example.</p>