Could not find a package configuration file provided by "X" with any of the following names...
cmake 사용 시 다음과 같은 에러가 발생하는 경우가 많다.
CMake Error at CMakeLists.txt:47 (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 provided by "OpenCV" with any of the following names: OpenCVConfig.cmake opencv-config.cmake Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV" provides a separate development package or SDK, be sure it has been installed.
만약 해당 라이브러리가 설치되어 있다면, 환경 변수를 추가하면 된다.
export OpenCV_DIR=/usr/local/opt/opencv3/
참고: Compiling using cmake with dependencies...











