create gen directory out of cmake