CMake无法找到gtest或EasyLogging ++软件包?

时间:2018-08-28 15:22:22

标签: cmake

我有以下cmake文件:

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/find_modules)

find_package(gtest REQUIRED)
find_package(EasyLOGGINGPP REQUIRED)

我得到以下错误:

-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE GTEST_MAIN_LIBRARY)
-- Could NOT find EASYLOGGINGPP (missing: EASYLOGGINGPP_INCLUDE_DIR)

我下载,编译并安装了位于其中的每个软件包:

C:\Program Files (x86)\googletest-distribution
and
C:\Program Files (x86)\Easyloggingpp

但是CMake仍然拒绝找到它们...我真的错过了什么吗?

0 个答案:

没有答案