设置cmake find_package(OpenCV REQUIRED)的查找路径

set(OpenCV_DIR /xxxx/opencv_install/lib/cmake/opencv4)

find_package(OpenCV REQUIRED)

你可能感兴趣的:(源码编译,开发语言,opencv)