I think, as in most GROMACS tools, the -n option and an index file containing the indices of the atoms of your amino acids with the proper selection of groups should do. Be sure to choose and carry out an apropriate fitting method before doing the RMSD (e.g. fit this residue, backbone only or whatever fits your purpose the most).