Generating a CMake script file