Skip to content

Commit 78d632c

Browse files
authored
Google Test for Debian and Ubuntu
1 parent cabdc8a commit 78d632c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,26 @@ Here is the link to the project source
104104

105105
On Ubuntu Linux you can install gtest using this command. If you are developing on another sytem refer to the documentation link for install procedures. Other than installing, all of the commands and test procedures we'll be using later will be the same (whether Windows / MacOS / POSIX / Linux).
106106

107+
107108
```
108-
sudo apt-get install libxorg-gtest-dev
109+
sudo apt-get install libgtest-dev
110+
111+
sudo apt-get install cmake # install cmake
112+
113+
cd /usr/src/gtest
114+
115+
sudo cmake CMakeLists.txt
116+
117+
sudo make
118+
119+
sudo cp *.a /usr/lib
120+
121+
sudo mkdir /usr/local/lib/googletest
122+
123+
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/gtest/libgtest.a
124+
125+
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/gtest/libgtest_main.a
126+
109127
```
110128

111129
You can read more about the Google Test project here:

0 commit comments

Comments
 (0)