Create proper CMake Config file which also checks for deps

Authored by kossebau on Mar 7 2019, 4:42 AM.