Set some cmake variables in rules file