Google Test - nrclark/hoboshop GitHub Wiki

Building Google Test was pretty easy, although installing it was something of a pain.

To install it from my clone, try the following:

autoreconf -i -f
./configure --prefix=/usr/local
make

Now, make install doesn't work. This is because Google intentionally disabled the Makefile target, for whatever reason. So to finish a standard stow-based installation, try the following:

mkdir -p /usr/local/stow/gtest
cp -r include /usr/local/stow/gtest
mkdir -p /usr/local/stow/gtest/lib
cp lib/.libs/* /usr/local/stow/gtest/lib
cd /usr/local/stow
stow gtest