Commit graph

2 commits

Author SHA1 Message Date
Shengjing Zhu
4dd4d8e339 cmake: link gtest_main to gmock lib
Starting with googletest 1.8.1, I meet the following error when building
the tests.

/usr/bin/ld: ../../../gmock/libgmock_main.a(gmock_main.cc.o): in function `main':
/usr/src/googletest/googlemock/src/gmock_main.cc:52: undefined reference to `testing::InitGoogleMock(int*, char**)'
2018-10-14 15:10:43 +08:00
Simon Fels
08aa37e9eb Import helper cmake script to find GMock and GTest on more modern systems
Taken from https://code.launchpad.net/~cmake-extras/cmake-extras/trunk
2017-04-26 19:57:15 +02:00