The chemical reactions and pathways resulting in the formation of cyclic GMP, guanosine 3',5'-phosphate.