add generate_cmake.sh