add a set of macros to simplify the cmakefiles