Last active
February 24, 2016 18:46
-
-
Save ehzawad/31926fe89df22e283bae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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