Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Last active February 24, 2016 18:46
Show Gist options
  • Save ehzawad/31926fe89df22e283bae to your computer and use it in GitHub Desktop.
Save ehzawad/31926fe89df22e283bae to your computer and use it in GitHub Desktop.
sudo aptitude install -y libgtest-dev
" But frustrating that you have build it using Cmake
cd /usr/src/gtest
sudo cmake -DCMAKEBUILDTYPE=RELEASE .
cd /tmp
mkdir .build
cd .build
cmake -DCMAKEBUILDTYPE=RELEASE /usr/src/gtest/
make
sudo mv libg* /usr/lib/
" run example...
clang++ -std=c++14 test.cpp -lgtest -lpthread -o <your executable name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment