I'm running a C++ program using OpenCV. I've installed all necessary libraries but it seems cmake cannot find OpenCV libraries.
The command port content opencv3 shows my opencv libraries are under these folders:
/opt/local/libexec/
/opt/local/bin/
/opt/local/lib/
/opt/local/include/
but adding set(OpenCV_DIR /opt/local) before find_package(OpenCV REQUIRED) didn't work and the same error just pop up every time.
What should I do?
set(OpenCV_DIR /opt/local).set(OpenCV_ROOT /opt/local), maybe.