Answer the question
In order to leave comments, you need to log in
Why is CMake not finding GTest (Google Test)?
There is a finished project. In one of the cmake files, the following construction works out:
find_package(GTest REQUIRED)
if (NOT GTest_FOUND)
message(FATAL_ERROR "Cannot find Google Test Framework!")
endif()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question