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

Commit

Permalink
Merge pull request #14 from Ubiquite/hunter-3.2.0
Browse files Browse the repository at this point in the history
Hunterized 3.2.0
  • Loading branch information
ruslo authored Feb 28, 2017
2 parents 70bbf17 + 9d70746 commit 5b0cc90
Show file tree
Hide file tree
Showing 10 changed files with 648 additions and 6 deletions.
5 changes: 5 additions & 0 deletions 3rdparty/ippicv/downloader.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ function(_icv_downloader)
endif()
endif()

if(HUNTER_ENABLED)
hunter_add_package(ippicv)
set(OPENCV_ICV_URL "file://${IPPICV_ROOT}")
endif()

if(NOT EXISTS "${OPENCV_ICV_PACKAGE_ARCHIVE}")
if(NOT DEFINED OPENCV_ICV_URL)
if(DEFINED ENV{OPENCV_ICV_URL})
Expand Down
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,19 @@ if(DEFINED CMAKE_BUILD_TYPE)
set_property( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
endif()

enable_testing()
include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.17.7.tar.gz"
SHA1 "78219f42c3737adcc161c52b9f71ce65a3d775c2"
)

project(OpenCV CXX C)

if(IOS)
set(CMAKE_SYSTEM_PROCESSOR "")
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3 -fomit-frame-pointer -ffast-math")
endif()

if(MSVC)
set(CMAKE_USE_RELATIVE_PATHS ON CACHE INTERNAL "" FORCE)
endif()
Expand Down Expand Up @@ -461,6 +470,10 @@ ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
# Path for additional modules
# ----------------------------------------------------------------------------
set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV modules")
if(OPENCV_WITH_EXTRA_MODULES)
hunter_add_package(OpenCV-Extra)
set(OPENCV_EXTRA_MODULES_PATH "${OPENCV-EXTRA_ROOT}/modules")
endif()

# ----------------------------------------------------------------------------
# Autodetect if we are in a GIT repository
Expand Down
Loading

0 comments on commit 5b0cc90

Please sign in to comment.