Skip to content

Instantly share code, notes, and snippets.

@aChase55
Forked from Cartexius/install_gtest_ubuntu.md
Created December 18, 2019 06:37
Show Gist options
  • Save aChase55/3c72fa2aa5bb8ec62817a4d9e0b7196d to your computer and use it in GitHub Desktop.
Save aChase55/3c72fa2aa5bb8ec62817a4d9e0b7196d to your computer and use it in GitHub Desktop.
Install gtest in Ubuntu

Reference - https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/

sudo apt-get install libgtest-dev

sudo apt-get install cmake # install cmake

cd /usr/src/gtest

sudo cmake CMakeLists.txt

sudo make

sudo cp *.a /usr/lib

sudo ln -s /usr/lib/libgtest.a /usr/local/lib/gtest/libgtest.a

sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/gtest/libgtest_main.a

@aChase55
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment