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
To link everything statically, I believe you're looking for CMAKE_EXE_LINKER_FLAGS (add -static).
CMAKE_EXE_LINKER_FLAGS
-static
Are you using the 'simple method' of OpenCVConfig.cmake? or the older FindOpenCV.cmake?