Enable to compile to a single opencv_world library file (#3914)

* Enable to compile to a single opencv_world library file
This commit is contained in:
Chuong Nguyen 2019-05-22 03:26:14 +10:00 committed by Curtis J Bezault
parent ed61238087
commit 85211f3ab6
2 changed files with 9 additions and 0 deletions

View File

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

View File

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