Added an initial cmake harness to detect environment for building unittest.