using rock cmake macros to compile the code