added cmake to build test.cpp