implement the CMake driver for Linux in C++