[cmake] Helper sets right properties to generated files