Split examples CMakeLists.txt

Also, this converts the examples/CMakeLists.txt from explicitly
listing to just globbing for all the individual C files.
Merge pull request #1828 from libgit2/examples-cmakelists

Split examples CMakeLists.txt