当前位置:网站首页>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边栏推荐
- Delphi soap WebService server-side multiple soapdatamodules implement the same interface method, interface inheritance
- torch. Tensor and torch The difference between tensor
- Redis transaction
- minidom 模块写入和解析 XML
- Methods of improving machine vision system
- [wechat applet] collaborative work and release
- AcWing 2022 每日一题
- 杰理之AD 系列 MIDI 功能说明【篇】
- Lambdaquerywrapper usage
- WGCNA分析基本教程总结
猜你喜欢

MP3是如何诞生的?

Master the use of auto analyze in data warehouse

Huawei ENSP simulator realizes communication security (switch)

A quick start to fastdfs takes you three minutes to upload and download files to the ECS

Arcgis 10.2.2 | arcgis license server无法启动的解决办法

Redis 排查大 key 的3种方法,优化必备

【C語言】符號的深度理解
![[C language] deep understanding of symbols](/img/4b/26cf10baa29eeff08101dcbbb673a2.png)
[C language] deep understanding of symbols

巅峰不止,继续奋斗!城链科技数字峰会于重庆隆重举行

Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
随机推荐
Jerry's ad series MIDI function description [chapter]
numpy vstack 和 column_stack
输入的查询SQL语句,是如何执行的?
【公开课预告】:视频质量评价基础与实践
2021 CCPC 哈尔滨 I. Power and Zero(二进制 + 思维)
y56.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(二九)
Daily question-leetcode556-next larger element iii-string-double pointer-next_ permutation
Daily question -leetcode1200- minimum absolute difference - array - sort
How to remove the black dot in front of the title in word document
TCP shakes hands three times and waves four times. Do you really understand?
更强的 JsonPath 兼容性及性能测试之2022版(Snack3,Fastjson2,jayway.jsonpath)
Jerry's ad series MIDI function description [chapter]
Difference between ApplicationContext and beanfactory (MS)
[weekly translation go] how to code in go series articles are online!!
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
Roast B station charges, is it because it has no money?
每日一题-LeetCode1200-最小绝对差-数组-排序
Interviewer: what is XSS attack?
redis布隆过滤器
Rotary transformer string judgment