当前位置:网站首页>GTEST from ignorance to skillful use (1) GTEST installation
GTEST from ignorance to skillful use (1) GTEST installation
2022-07-04 21:41:00 【Wonderful binary】
1、 Install... From source
download gtest,release-1.8.0
git clone https://github.com/google/googletest
gtest compile
cd googletest
Generate Makefile file ( Install first cmake,brew install cmake), Continue to enter the command to compile :
cmake CMakeLists.txt
perform make, Generate two static libraries :libgtest.a libgtest_main.a
make
Copy to system directory , Be careful , If the directory location changes in different versions , use find . -name “libgtest*.a” Find a place
sudo cp libgtest*.a /usr/lib
sudo cp –a include/gtest /usr/include
Check if the installation is successful
You can write a simple test code as follows :
#include<gtest/gtest.h>
int add(int a
边栏推荐
- 【活动早知道】LiveVideoStack近期活动一览
- 为什么说不变模式可以提高性能
- Jerry's ad series MIDI function description [chapter]
- Jerry's ad series MIDI function description [chapter]
- Liu Jincheng won the 2022 China e-commerce industry innovation Figure Award
- 解析互联网时代的创客教育技术
- Jerry's ad series MIDI function description [chapter]
- [early knowledge of activities] list of recent activities of livevideostack
- Word文档中标题前面的黑点如何去掉
- 【公开课预告】:视频质量评价基础与实践
猜你喜欢
Routing configuration and connectivity test of Huawei simulator ENSP
Redis 排查大 key 的3种方法,优化必备
Keep on fighting! The city chain technology digital summit was grandly held in Chongqing
杰理之AD 系列 MIDI 功能说明【篇】
历史最全混合专家(MOE)模型相关精选论文、系统、应用整理分享
B站视频 声音很小——解决办法
杰理之AD 系列 MIDI 功能说明【篇】
Daily question -leetcode1200- minimum absolute difference - array - sort
maya灯建模
redis03——Redis的网络配置与心跳机制
随机推荐
minidom 模块写入和解析 XML
Redis transaction
Jerry's ad series MIDI function description [chapter]
[leetcode] 17. Letter combination of telephone number
Delphi SOAP WebService 服务器端多个 SoapDataModule 实现相同的接口方法,接口继承
改善机器视觉系统的方法
Methods of improving machine vision system
旋变串判断
minidom 模塊寫入和解析 XML
Jerry's ad series MIDI function description [chapter]
刘锦程荣获2022年度中国电商行业创新人物奖
Flutter WebView示例
Jerry added the process of turning off the touch module before turning it off [chapter]
Why does invariant mode improve performance
How to use concurrentlinkedqueue as a cache queue
杰理之AD 系列 MIDI 功能说明【篇】
【公开课预告】:视频质量评价基础与实践
Learning breakout 3 - about energy
为什么说不变模式可以提高性能
SolidWorks工程图添加材料明细表的操作