Skip to content

Commit 9b86b49

Browse files
authored
Merge pull request #2 from inuaimi/hunter-4.2.0
Support for opencv-4.2.0
2 parents bda89a6 + 923b8e4 commit 9b86b49

13 files changed

+776
-7
lines changed

3rdparty/ippicv/ippicv.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ function(download_ippicv root_var)
3838
return()
3939
endif()
4040

41+
if(HUNTER_ENABLED)
42+
hunter_add_package(ippicv)
43+
set(OPENCV_ICV_URL "file://${IPPICV_ROOT}")
44+
endif()
45+
4146
set(THE_ROOT "${OpenCV_BINARY_DIR}/3rdparty/ippicv")
4247
ocv_download(FILENAME ${OPENCV_ICV_NAME}
4348
HASH ${OPENCV_ICV_HASH}

CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ if(DEFINED CMAKE_BUILD_TYPE)
9090
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${CMAKE_CONFIGURATION_TYPES}")
9191
endif()
9292

93+
include("cmake/HunterGate.cmake")
94+
HunterGate(
95+
URL "https://github.com/cpp-pm/hunter/archive/v0.10.9.tar.gz"
96+
SHA1 "53b198e364dc7bc8360fc545f798563229bd7e20"
97+
)
98+
9399
option(ENABLE_PIC "Generate position independent code (necessary for shared libraries)" TRUE)
94100
set(CMAKE_POSITION_INDEPENDENT_CODE ${ENABLE_PIC})
95101

@@ -556,6 +562,10 @@ ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
556562
# Path for additional modules
557563
# ----------------------------------------------------------------------------
558564
set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV modules (can be ;-separated list of paths)")
565+
if(OPENCV_WITH_EXTRA_MODULES)
566+
hunter_add_package(OpenCV-Extra)
567+
set(OPENCV_EXTRA_MODULES_PATH "${OPENCV-EXTRA_ROOT}/modules")
568+
endif()
559569

560570
# ----------------------------------------------------------------------------
561571
# Autodetect if we are in a GIT repository

0 commit comments

Comments
 (0)