Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 5b0cc90

Browse files
authored
Merge pull request #14 from Ubiquite/hunter-3.2.0
Hunterized 3.2.0
2 parents 70bbf17 + 9d70746 commit 5b0cc90

File tree

10 files changed

+648
-6
lines changed

10 files changed

+648
-6
lines changed

3rdparty/ippicv/downloader.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ function(_icv_downloader)
5959
endif()
6060
endif()
6161

62+
if(HUNTER_ENABLED)
63+
hunter_add_package(ippicv)
64+
set(OPENCV_ICV_URL "file://${IPPICV_ROOT}")
65+
endif()
66+
6267
if(NOT EXISTS "${OPENCV_ICV_PACKAGE_ARCHIVE}")
6368
if(NOT DEFINED OPENCV_ICV_URL)
6469
if(DEFINED ENV{OPENCV_ICV_URL})

CMakeLists.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,19 @@ if(DEFINED CMAKE_BUILD_TYPE)
9393
set_property( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
9494
endif()
9595

96-
enable_testing()
96+
include("cmake/HunterGate.cmake")
97+
HunterGate(
98+
URL "https://github.com/ruslo/hunter/archive/v0.17.7.tar.gz"
99+
SHA1 "78219f42c3737adcc161c52b9f71ce65a3d775c2"
100+
)
97101

98102
project(OpenCV CXX C)
99103

104+
if(IOS)
105+
set(CMAKE_SYSTEM_PROCESSOR "")
106+
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3 -fomit-frame-pointer -ffast-math")
107+
endif()
108+
100109
if(MSVC)
101110
set(CMAKE_USE_RELATIVE_PATHS ON CACHE INTERNAL "" FORCE)
102111
endif()
@@ -461,6 +470,10 @@ ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
461470
# Path for additional modules
462471
# ----------------------------------------------------------------------------
463472
set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV modules")
473+
if(OPENCV_WITH_EXTRA_MODULES)
474+
hunter_add_package(OpenCV-Extra)
475+
set(OPENCV_EXTRA_MODULES_PATH "${OPENCV-EXTRA_ROOT}/modules")
476+
endif()
464477

465478
# ----------------------------------------------------------------------------
466479
# Autodetect if we are in a GIT repository

0 commit comments

Comments
 (0)