Skip to content

Instantly share code, notes, and snippets.

@Slowhand0309
Last active July 27, 2019 05:29
Show Gist options
  • Save Slowhand0309/5bb322952ac67ff19191 to your computer and use it in GitHub Desktop.
Save Slowhand0309/5bb322952ac67ff19191 to your computer and use it in GitHub Desktop.
[Install googletest for cmake] #Script
#!/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