How to install google test framework (gtest) on Linux using CMake

preview_player
Показать описание
How do you install gtest or google test framework on Linux.
There are two ways you can install gtest on Linux
1. Using sudo apt install libgtest-dev googletest
2. Using google test source code

Use google test in CMake without installing

#cpp #tdd #unittesting #googletest #gtest #linux #aptitude #c #cmake #programming #developers #development
Рекомендации по теме
Комментарии
Автор

I spent 3 hours trying to figure this out but thanks to you it only took me me 5 more minutes

shahmeeramir
Автор

HI Bhavith, thank you very much for the videos,
if possible can you make a video for noob--best practices for c/c++ using Vs code workin gon remote linux machine using vscode (how to connect to remote linux Deplopment VM from vs code on windows and best practices) thank you sir

cprogrammingandcode
Автор

Hello Bhavith,

Thank you for this video. Can you make a video on how to install and test C code in Windows machine? I tried to install Ceedling(unity, CMock) but don't know why the setup is not working for me.

If you already have any video on the same, please share the links. Will be helpful for me.

rakurame
Автор

Hi, nice tutorial. Only missing uploads of these few files that you are compiling. Except that, very helpfull.

pawewojciechowski
Автор

Hi, I'm getting error while using sudo cmake -Bbuild, that sudo: cmake: command not found, how to resolve it?

shetaanshu
Автор

Hello, when I go to /usr/lib/x84... I don't have the dir cmake, have any idea? I've followed every step. *minute 3:40

paijavai
Автор

Hello
I am using cmake version 3.16

there is no a.out
./build/a.out
bash: ./build/a.out: No such file or directory

shajipappen
Автор

Hi Bhavith,

I cannot find GTest in All the previous steps up until 3:11 worked correctly. How do I solve this?

Also, I get
```
CMake Warning at CMakeLists.txt:54 (project):

VERSION keyword not followed by a value or was followed by a value that
expanded to nothing.
```
when I run "sudo cmake -Bbuild" inside /usr/src/gtest
How do I get rid of it?

anprabh
Автор

Hello, What should I do in my case, I do not have the path

carlalucca