Fail to find gtest inside a container
问题 I am working inside a container. I want to try gtest so first I installed it by doing this inside the container: Download the source file from github/google/googletest build the project by cmake CMakeLists.txt call make cd lib and cp * /usr/lib cd googlemock/include and cp -r gmock /usr/local/include cd googletest/include and cp -r gtest /usr/local/include After this I created a CMakeLists.txt file as cmake_minimum_required(VERSION 3.13) set(CMAKE_CXX_STANDARD 11) find_package(GTest REQUIRED)