modified CMake script to generate ReadMe.md automatically