Using CMake now and renames samples to examples.