Call find_package for OpenCV on Windows for modatv

This commit is contained in:
Jon Beniston 2022-08-06 18:11:55 +01:00
parent fd98de7b38
commit 981781eabe
1 changed files with 2 additions and 0 deletions

View File

@ -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 "")