cmake: simulate preprocessor on genrcdefs.h