Add CMakeLists.txt for examples.

Optionally, if snippetextractor is found, generate the Markdown files
and fail if the snippet markup does not resolve (WIP).