Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ports/opencv/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,8 @@ Feature: eigen
Build-Depends: eigen3
Description: Eigen support for opencv

Feature: world
Description: Compile to a single package support for opencv

Feature: nonfree
Description: allow nonfree and unredistributable libraries
6 changes: 6 additions & 0 deletions ports/opencv/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" BUILD_WITH_STATIC_CRT)

set(CMAKE_MODULE_PATH)

set(BUILD_opencv_world OFF)
if("world" IN_LIST FEATURES)
set(BUILD_opencv_world ON)
endif()

set(BUILD_opencv_dnn OFF)
set(WITH_PROTOBUF OFF)
if("dnn" IN_LIST FEATURES)
Expand Down Expand Up @@ -274,6 +279,7 @@ vcpkg_configure_cmake(
-DBUILD_opencv_python3=OFF
-DBUILD_opencv_saliency=${BUILD_opencv_saliency}
-DBUILD_opencv_sfm=${BUILD_opencv_sfm}
-DBUILD_opencv_world=${BUILD_opencv_world}
# PROTOBUF
-DPROTOBUF_UPDATE_FILES=${PROTOBUF_UPDATE_FILES}
-DUPDATE_PROTO_FILES=${UPDATE_PROTO_FILES}
Expand Down