当前位置:网站首页>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边栏推荐
- Y56. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (29)
- [public class preview]: basis and practice of video quality evaluation
- AcWing 2022 每日一题
- Lambdaquerywrapper usage
- Billions of citizens' information has been leaked! Is there any "rescue" for data security on the public cloud?
- 迈动互联中标北京人寿保险
- Jerry's ad series MIDI function description [chapter]
- Flutter在 release版本,打开后随机白屏不显示内容
- Kubedm initialization error: [error cri]: container runtime is not running
- Maidong Internet won the bid of Beijing life insurance
猜你喜欢
![[C language] deep understanding of symbols](/img/4b/26cf10baa29eeff08101dcbbb673a2.png)
[C language] deep understanding of symbols

WGCNA分析基本教程总结

Application practice | Shuhai supply chain construction of data center based on Apache Doris

SolidWorks工程图添加材料明细表的操作

maya灯建模

奋斗正当时,城链科技战略峰会广州站圆满召开

【C语言】符号的深度理解

Shutter textfield example

杰理之AD 系列 MIDI 功能说明【篇】

Keep on fighting! The city chain technology digital summit was grandly held in Chongqing
随机推荐
每日一题-LeetCode1200-最小绝对差-数组-排序
超详细教程,一文入门Istio架构原理及实战应用
如何借助自动化工具落地DevOps
Huawei ENSP simulator realizes communication security (switch)
开源之夏专访|Apache IoTDB社区 新晋Committer谢其骏
【活动早知道】LiveVideoStack近期活动一览
redis03——Redis的网络配置与心跳机制
LambdaQueryWrapper用法
At the right time, the Guangzhou station of the city chain science and Technology Strategy Summit was successfully held
Maya lamp modeling
maya灯建模
股票开户佣金最低多少,炒股开户佣金最低网上开户安全吗
Difference between ApplicationContext and beanfactory (MS)
redis管道
How to use concurrentlinkedqueue as a cache queue
__ init__ () missing 2 required positive arguments
杰理之AD 系列 MIDI 功能说明【篇】
杰理之增加进关机前把触摸模块关闭流程【篇】
Can be displayed in CAD but not displayed in print
创客思维在高等教育中的启迪作用