add a cmake file for the examples and add the binaries to .gitignore