added cmake files as well as made unit tests work for the dbg.h macrostests work for the dbg.h macros