generate CMakeLists.txt from source file.