googlemock has been absorbed into the
googletest project and is built
and installed from the same source tree.
CMake target for the
gmock library in FindGTest.cmake.
In googletest version 1.8 gmock is built and installed from the same sources. In versions
>= 1.8.1 upstream provides package configuration files, which usually provide the
GTest::gmock (except cross-compiling with Yocto
dunfell, for some reason).