目标:
编译background subtraction library
问题:
Could not find module Findopencv.cmake or a configuration file for package
opencv.
Adjust CMAKE_MODULE_PATH to find Findopencv.cmake or set opencv_DIR to the
directory containing a CMake configuration file for opencv. The file will
have one of the following names:
opencvConfig.cmake
opencv-config.cmake
原因:
bgs中的CMakeLists用find_package(opencv REQUIRED)来定位opencv。新版本OpenCV用FindOpenCV.cmake的命名规则(module mode),或者OpenCVConfig.cmake(c