[cmake] add c macros