I\'m trying to build an OpenCV-based project using CMake, running on Linux. So far my CMakeLists.txt files looks something like
CMakeLists.txt
FIND_PACKAGE (Op
Actually this issue seems to have already been fixed in the OpenCVConfig.cmake that comes with OpenCV. All you have to do is define OpenCV_STATIC in your CMakeLists.txt. I.e.
OpenCVConfig.cmake
OpenCV_STATIC
set(OpenCV_STATIC ON) find_package(OpenCV REQUIRED)