Smoothed out wrinkles with initial CMake implementation.
Added a reference CMakeLists file.