How to create a shared library with cmake?
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): . ├── include │ ├── animation.h │ ├── buffers.h │ ├── ... │ ├── vertex.h │ └── world.h └── src ├── animation.cpp ├── buffers.cpp ├── ... ├── vertex.cpp └── world.cpp 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. Most examples that I have found compile executables with some shared libraries but never just a plain shared library. It would also be