Modularize compiler configurations in CMake.
Move code examples into examples.