diff --git a/CMakeLists.txt b/CMakeLists.txt index a83bc32b5..bd0380969 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -444,6 +444,8 @@ endif() # unfortunately OpenCV library from windows doesn't set the cache option if(WIN32) + find_package(OpenCV OPTIONAL_COMPONENTS core highgui imgproc imgcodecs videoio) # channeltx/modatv + set(OpenCV_INCLUDE_DIRS "${OpenCV_INCLUDE_DIRS}" CACHE INTERNAL "") set(OpenCV_LIBS "${OpenCV_LIBS}" CACHE INTERNAL "")