diff --git a/ports/opencv/CONTROL b/ports/opencv/CONTROL index d6718f0803..dbe13b2384 100644 --- a/ports/opencv/CONTROL +++ b/ports/opencv/CONTROL @@ -14,6 +14,10 @@ Feature: cuda Build-Depends: cuda Description: CUDA support for opencv +Feature: qt +Build-Depends: qt5 +Description: Qt GUI support for opencv + Feature: sfm Build-Depends: eigen3, glog, gflags Description: opencv_sfm module diff --git a/ports/opencv/portfile.cmake b/ports/opencv/portfile.cmake index 470cac0059..64f644c359 100644 --- a/ports/opencv/portfile.cmake +++ b/ports/opencv/portfile.cmake @@ -42,6 +42,11 @@ if("cuda" IN_LIST FEATURES) set(WITH_CUDA ON) endif() +set(WITH_QT OFF) +if("qt" IN_LIST FEATURES) + set(WITH_QT ON) +endif() + set(WITH_VTK OFF) if("vtk" IN_LIST FEATURES) set(WITH_VTK ON) @@ -92,6 +97,7 @@ vcpkg_configure_cmake( -DWITH_FFMPEG=${WITH_FFMPEG} -DWITH_CUDA=${WITH_CUDA} -DWITH_OPENGL=ON + -DWITH_QT=${WITH_QT} -DWITH_VTK=${WITH_VTK} OPTIONS_DEBUG -DINSTALL_HEADERS=OFF