cmake macros for tde