basic example generation using CMake