I'm trying to build a ROS package which requires OpenCV using the "catkin_make" command.
Upon trying to build, I get the following error for CMakeList command "find_package(OpenCV REQUIRED)":
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "OpenCV" with any of the following names:
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files.
Fixed the problem by adding the line
set(OpenCV_DIR /usr/share/OpenCV/) before the
find_package() command in my cmakelists file.