mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[opencv] Add feature for building with TBB as parallel framework (#5123)
This commit is contained in:
parent
1daccb57b7
commit
d10bf0f6c4
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user