[cmake] Update CI and build system
- The creation of the library needs to be updated, because otherwise the library is not found by downstream modules.
- Require 2.10 (since the code relies on this for about one year already).
- Update CI config.
Edited by graeser