Write a gui cmake script