Split examples CMakeLists.txt

This splits the CMake file for examples into a separate CMakeLists.txt and converts the `examples/CMakeLists.txt` from explicitly listing to just globbing for all the individual C files and adding an executable for each one.

I don't know if you'll like this or not, but the existing approach was bugging me.