so its own settings can be populated properly, among other things,
`GOOGLETEST_VERSION` is set in the CMakeLists.txt in its root directory.
without it, cmake complains when interpreting
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
Signed-off-by: Kefu Chai <kchai@redhat.com>
find_package(GMock REQUIRED)
else()
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
- add_subdirectory(googletest/googlemock)
+ add_subdirectory(googletest)
add_library(GMock::GMock ALIAS gmock)
add_library(GMock::Main ALIAS gmock_main)
target_include_directories(gmock INTERFACE