Work on CMake.
Fix examples' cmake.