cmake : add exportation of test macros for apps