如何解决CmakeList中的OpenCV问题?
发布时间
阅读量:
阅读量
问题
构建一个开源项目,其对应的CMakeLists文件如下:
find_package(OpenCV QUIET COMPONENTS core highgui imgproc imgcodecs)
if(NOT OpenCV_FOUND)
find_package(OpenCV REQUIRED COMPONENTS core highgui imgproc)
endif()
在执行cmake操作之后出现错误:
CMake Error at examples/CMakeLists.txt:5 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file pr
全部评论 (0)
还没有任何评论哟~
