cmake: rewrite of the cmake config file

This fixes #3 since pkg-config is not used anymore as a backend

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>