当前位置:网站首页>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边栏推荐
- Redis transaction
- 解析互联网时代的创客教育技术
- 2021 CCPC Harbin B. magical subsequence (thinking question)
- Jerry's ad series MIDI function description [chapter]
- Jerry's ad series MIDI function description [chapter]
- Redis bloom filter
- Why does invariant mode improve performance
- Go语言循环语句(第10课中3)
- 改善机器视觉系统的方法
- Delphi soap WebService server-side multiple soapdatamodules implement the same interface method, interface inheritance
猜你喜欢
![[public class preview]: basis and practice of video quality evaluation](/img/fd/42b98a08b5a0fd89c119f1d1a8fe1b.png)
[public class preview]: basis and practice of video quality evaluation

Huawei ENSP simulator configures ACL access control list

华为模拟器ensp的路由配置以及连通测试
![Compréhension approfondie du symbole [langue C]](/img/4b/26cf10baa29eeff08101dcbbb673a2.png)
Compréhension approfondie du symbole [langue C]

Shutter textfield example

超详细教程,一文入门Istio架构原理及实战应用

Huawei ENSP simulator layer 3 switch

【C語言】符號的深度理解

Redis03 - network configuration and heartbeat mechanism of redis
![Jerry's ad series MIDI function description [chapter]](/img/28/e0f9b41db597ff3288af431c677001.png)
Jerry's ad series MIDI function description [chapter]
随机推荐
Routing configuration and connectivity test of Huawei simulator ENSP
Case sharing | integrated construction of data operation and maintenance in the financial industry
Use of class methods and class variables
MP3是如何诞生的?
redis管道
The video sound of station B is very low - solution
Delphi soap WebService server-side multiple soapdatamodules implement the same interface method, interface inheritance
杰理之AD 系列 MIDI 功能说明【篇】
How was MP3 born?
Keep on fighting! The city chain technology digital summit was grandly held in Chongqing
TCP三次握手,四次挥手,你真的了解吗?
应用实践 | 蜀海供应链基于 Apache Doris 的数据中台建设
redis缓存
【C語言】符號的深度理解
WGCNA analysis basic tutorial summary
哈希表(Hash Tabel)
Huawei ENSP simulator configures DHCP for router
Redis cache
Difference between ApplicationContext and beanfactory (MS)
Rotary transformer string judgment