原创 gtest 編譯、安裝和使用

本例以 gtest-1.7.0 爲例進行講解。 一、要求: 1. 安裝 cmake 二、編譯 1. 下載 gtest 源碼包,並解壓,如:/home/hdc/gtest-1.7.0; 2.  編譯 gtest 動態庫,進