My CMake project uses OpenCV, however, it links to the shared build, which requires the OpenCV DLLs for my executable to work. How can I tell CMake to use the static build of OpenCV instead?
What should I change in my CMakeList.txt file? This is how it looks right now:
cmake_minimum_required(VERSION 2.8)
project (Tutorial)
find_package (OpenCV REQUIRED)
add_executable (Tutorial WIN32 main.cpp)
target_link_libraries (Tutorial ${OpenCV_LIBS})