古今googletestのインストール

昔(もう取得できません)

$ wget http://googletest.googlecode.com/files/gtest-1.7.0.zip
$ unzip gtest-1.7.0.zip

今、github

$ git clone https://github.com/google/googletest.git
$ cd googletest
~/googletest $ mkdir build
~/googletest $ cd build
~/googletest/build $ cmake ..
~/googletest/build $ make

んで、ファイルのパスも変わった。

~/googletest/gtest/include/gtest/gtest.h
~/googletest/gtest/lib/libgtest.a

~/googletest $ find ./ -nmae "*.a"
./build/googlemock/libmock.a
./build/googlemock/gtest/libgtest_main.a
./build/googlemock/gtest/libgtest.a
./build/googlemock/libgmock_main.a

~/googletest $ find ./ -name "gtest.h"
./googletest/include/gtest/gtest.h
./googletest/include/gtest/internal/custom/gtest.h

というわけでパスが以下に変わってた。

~/googletest/googletest/include/gtest/gtest.h
~/googletest/build/googlemock/gtest/libgtest.a

詳しくは下記参照。

qiita.com