Generate cmake config

With this using libgit2 from cmake becomes trivial.
It is then enough to use find_package(LibGit2) without any Find*.cmake
files.