gras: copied common defs into a new cmake file