Add CMakeFiles for cube example.
Share compile flags between fanLens and other target depend on it.