use cmake to build test program, install to system directory