CMake Error at /usr/src/gmock/CMakeLists.txt:51 (add_subdirectory): add_subdirectory given source

CMake Error at /usr/src/gmock/CMakeLists.txt:51 (add_subdirectory):
add_subdirectory given source “…/gtest” which is not an existing
directory.

CMake Error at /usr/src/gmock/CMakeLists.txt:56 (config_compiler_and_linker):
Unknown CMake command “config_compiler_and_linker”.

应该还是库的问题,下载Googletest之后编译安装,将文件夹烤入报错的目录下.

你可能感兴趣的:(CMake Error at /usr/src/gmock/CMakeLists.txt:51 (add_subdirectory): add_subdirectory given source)