[opencv] Add feature for building with TBB as parallel framework (#5123)

This commit is contained in:
emptyVoid 2019-02-15 07:26:05 +07:00 committed by Codiferous
parent 1daccb57b7
commit d10bf0f6c4
2 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,10 @@ Description: prebuilt ffmpeg support for opencv
Feature: ipp
Description: Enable Intel Integrated Performance Primitives
Feature: tbb
Build-Depends: tbb
Description: Enable Intel Threading Building Blocks
Feature: qt
Build-Depends: qt5
Description: Qt GUI support for opencv

View File

@ -145,6 +145,11 @@ if("ipp" IN_LIST FEATURES)
endif()
endif()
set(WITH_TBB OFF)
if("tbb" IN_LIST FEATURES)
set(WITH_TBB ON)
endif()
set(WITH_QT OFF)
if("qt" IN_LIST FEATURES)
set(WITH_QT ON)
@ -299,6 +304,7 @@ vcpkg_configure_cmake(
-DWITH_PNG=${WITH_PNG}
-DWITH_PROTOBUF=${WITH_PROTOBUF}
-DWITH_QT=${WITH_QT}
-DWITH_TBB=${WITH_TBB}
-DWITH_TIFF=${WITH_TIFF}
-DWITH_VTK=${WITH_VTK}
-DWITH_WEBP=${WITH_WEBP}