2017-03-15 18:19:59 +08:00
|
|
|
function(download_ippicv root_var)
|
|
|
|
set(${root_var} "" PARENT_SCOPE)
|
|
|
|
|
|
|
|
# Commit SHA in the opencv_3rdparty repo
|
2020-02-26 03:04:11 +08:00
|
|
|
set(IPPICV_COMMIT "a56b6ac6f030c312b2dce17430eef13aed9af274")
|
2017-03-15 18:19:59 +08:00
|
|
|
# Define actual ICV versions
|
|
|
|
if(APPLE)
|
|
|
|
set(OPENCV_ICV_PLATFORM "macosx")
|
2017-04-13 20:50:23 +08:00
|
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_mac")
|
2020-02-26 03:04:11 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2020_mac_intel64_20191018_general.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "1c3d675c2a2395d094d523024896e01b")
|
2017-03-15 18:19:59 +08:00
|
|
|
elseif((UNIX AND NOT ANDROID) OR (UNIX AND ANDROID_ABI MATCHES "x86"))
|
|
|
|
set(OPENCV_ICV_PLATFORM "linux")
|
|
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_lnx")
|
2017-04-13 20:50:23 +08:00
|
|
|
if(X86_64)
|
2020-02-26 03:04:11 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2020_lnx_intel64_20191018_general.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "7421de0095c7a39162ae13a6098782f9")
|
2017-04-13 20:50:23 +08:00
|
|
|
else()
|
2020-02-26 03:04:11 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2020_lnx_ia32_20191018_general.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "ad189a940fb60eb71f291321322fe3e8")
|
2017-04-13 20:50:23 +08:00
|
|
|
endif()
|
2017-03-15 18:19:59 +08:00
|
|
|
elseif(WIN32 AND NOT ARM)
|
|
|
|
set(OPENCV_ICV_PLATFORM "windows")
|
|
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_win")
|
2017-04-13 20:50:23 +08:00
|
|
|
if(X86_64)
|
2020-02-26 03:04:11 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2020_win_intel64_20191018_general.zip")
|
|
|
|
set(OPENCV_ICV_HASH "879741a7946b814455eee6c6ffde2984")
|
2017-04-13 20:50:23 +08:00
|
|
|
else()
|
2020-02-26 03:04:11 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2020_win_ia32_20191018_general.zip")
|
|
|
|
set(OPENCV_ICV_HASH "cd39bdf0c2e1cac9a61101dad7a2413e")
|
2017-04-13 20:50:23 +08:00
|
|
|
endif()
|
2017-03-15 18:19:59 +08:00
|
|
|
else()
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(THE_ROOT "${OpenCV_BINARY_DIR}/3rdparty/ippicv")
|
|
|
|
ocv_download(FILENAME ${OPENCV_ICV_NAME}
|
|
|
|
HASH ${OPENCV_ICV_HASH}
|
|
|
|
URL
|
|
|
|
"${OPENCV_IPPICV_URL}"
|
|
|
|
"$ENV{OPENCV_IPPICV_URL}"
|
|
|
|
"https://raw.githubusercontent.com/opencv/opencv_3rdparty/${IPPICV_COMMIT}/ippicv/"
|
|
|
|
DESTINATION_DIR "${THE_ROOT}"
|
2017-03-28 23:21:13 +08:00
|
|
|
ID IPPICV
|
2017-03-15 18:19:59 +08:00
|
|
|
STATUS res
|
|
|
|
UNPACK RELATIVE_URL)
|
|
|
|
|
|
|
|
if(res)
|
|
|
|
set(${root_var} "${THE_ROOT}/${OPENCV_ICV_PACKAGE_SUBDIR}" PARENT_SCOPE)
|
|
|
|
endif()
|
|
|
|
endfunction()
|