add cmake and a cmake test