gtest安装
gtest安裝(1.70版本)
按照安裝包里README的說明,使用CMake安裝方法
1.安裝cmake
2.mkdir mybuild && cd mybuild
3.cmake ${gtest-dir} (${gtest-dir}是gtest的解壓目錄)
4.此時生成CMakeList.txt,MakeFile等文件,執行make命令
5.將生成的libgtest.a庫文件復制到/usr/local/lib下
此時只有鏈接庫沒有開發用的頭文件,可以使用sudo apt-get install libgtest-dev安裝頭文件,也可以
cp ${gtest-dir}/include/gtest文件夾到 /usr/local/include文件夾下
轉載于:https://www.cnblogs.com/kangtuohongwai/p/6002556.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
- 上一篇: hive最新UDF函数(2016-10-
- 下一篇: 添加 Bash 自定义命令