Initial port of CMake macro for test on Ubuntu