我有以下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仍然拒绝找到它们...我真的错过了什么吗?