Last active
July 27, 2019 05:29
-
-
Save Slowhand0309/5bb322952ac67ff19191 to your computer and use it in GitHub Desktop.
[Install googletest for cmake] #Script
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
#!/bin/sh | |
echo "make directory build" | |
mkdir build | |
cd build | |
cmake .. | |
make | |
echo "copy header and library" | |
sudo cp -r ../googletest/include/gtest /usr/local/include/ | |
sudo cp ./googlemock/gtest/lib*.a /usr/local/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment