First batch of cmake macros