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
|
2018-05-18 17:08:22 +08:00
|
|
|
set(IPPICV_COMMIT "bdb7bb85f34a8cb0d35e40a81f58da431aa1557a")
|
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")
|
|
|
|
if(X86_64)
|
2018-05-18 17:08:22 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2017u3_mac_intel64_general_20180518.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "3ae52b9be0fe73dd45bc5e9429cd3732")
|
2017-04-13 20:50:23 +08:00
|
|
|
else()
|
2018-05-18 17:08:22 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2017u3_mac_ia32_general_20180518.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "698660b975b62bee3ef6c5af51e97544")
|
2017-04-13 20:50:23 +08:00
|
|
|
endif()
|
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)
|
2018-05-18 17:08:22 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2017u3_lnx_intel64_general_20180518.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "b7cc351267db2d34b9efa1cd22ff0572")
|
2017-04-13 20:50:23 +08:00
|
|
|
else()
|
2018-05-18 17:08:22 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2017u3_lnx_ia32_general_20180518.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "ea72de74dae3c604eb6348395366e78e")
|
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)
|
2018-05-18 17:08:22 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2017u3_win_intel64_general_20180518.zip")
|
|
|
|
set(OPENCV_ICV_HASH "915ff92958089ede8ea532d3c4fe7187")
|
2017-04-13 20:50:23 +08:00
|
|
|
else()
|
2018-05-18 17:08:22 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2017u3_win_ia32_general_20180518.zip")
|
|
|
|
set(OPENCV_ICV_HASH "928168c2d99ab284047dfcfb7a821d91")
|
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()
|