Skip to content

Commit 8eb9198

Browse files
authored
Merge pull request #4 from ThomasGuerneve/3.4.10-hunterised
3.4.10 hunterised
2 parents 7fae2e8 + cdc5c43 commit 8eb9198

8 files changed

+697
-58
lines changed

3rdparty/ippicv/ippicv.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ function(download_ippicv root_var)
3333
return()
3434
endif()
3535

36+
if(HUNTER_ENABLED)
37+
hunter_add_package(ippicv)
38+
set(OPENCV_ICV_URL "file://${IPPICV_ROOT}")
39+
endif()
40+
3641
set(THE_ROOT "${OpenCV_BINARY_DIR}/3rdparty/ippicv")
3742
ocv_download(FILENAME ${OPENCV_ICV_NAME}
3843
HASH ${OPENCV_ICV_HASH}

CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ if(DEFINED CMAKE_BUILD_TYPE)
9797
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${CMAKE_CONFIGURATION_TYPES}")
9898
endif()
9999

100+
include("cmake/HunterGate.cmake")
101+
HunterGate(
102+
URL "https://github.com/cpp-pm/hunter/archive/v0.23.256.tar.gz"
103+
SHA1 "e9b8328133fc0643d5f921fec81f2c0808c98419"
104+
)
105+
100106
option(ENABLE_PIC "Generate position independent code (necessary for shared libraries)" TRUE)
101107
set(CMAKE_POSITION_INDEPENDENT_CODE ${ENABLE_PIC})
102108

@@ -576,6 +582,10 @@ ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
576582
# Path for additional modules
577583
# ----------------------------------------------------------------------------
578584
set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV modules (can be ;-separated list of paths)")
585+
if(OPENCV_WITH_EXTRA_MODULES)
586+
hunter_add_package(OpenCV-Extra)
587+
set(OPENCV_EXTRA_MODULES_PATH "${OPENCV-EXTRA_ROOT}/modules")
588+
endif()
579589

580590
# ----------------------------------------------------------------------------
581591
# Autodetect if we are in a GIT repository

0 commit comments

Comments
 (0)