How to install Google Test on mac

When I doing PMPP project, I need to use google test.

Because google have merge the googletest and googlemock, so the guide on website can be off work.

STEPS:

  • Download gtest on google test github page.

– Build gtest:

cd gtest

mkdir build

cd build

cmake ..

make

– Install gtest library

sudo cp -r ../googletest/include/gtest /usr/local/include/

sudo cp /googlemock/gtest/lib*.a /usr/local/lib
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s