mirror of
https://github.com/opencv/opencv.git
synced 2024-12-24 17:18:28 +08:00
52 lines
1.9 KiB
CMake
52 lines
1.9 KiB
CMake
function(download_ippicv root_var)
|
|
set(${root_var} "" PARENT_SCOPE)
|
|
|
|
# Commit SHA in the opencv_3rdparty repo
|
|
set(IPPICV_COMMIT "0cc4aa06bf2bef4b05d237c69a5a96b9cd0cb85a")
|
|
# Define actual ICV versions
|
|
if(APPLE)
|
|
set(OPENCV_ICV_PLATFORM "macosx")
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_mac")
|
|
set(OPENCV_ICV_NAME "ippicv_2021.9.1_mac_intel64_20230919_general.tgz")
|
|
set(OPENCV_ICV_HASH "14f01c5a4780bfae9dde9b0aaf5e56fc")
|
|
elseif((UNIX AND NOT ANDROID) OR (UNIX AND ANDROID_ABI MATCHES "x86"))
|
|
set(OPENCV_ICV_PLATFORM "linux")
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_lnx")
|
|
if(X86_64)
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_lnx_intel64_20230919_general.tgz")
|
|
set(OPENCV_ICV_HASH "606a19b207ebedfe42d59fd916cc4850")
|
|
else()
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_lnx_ia32_20230919_general.tgz")
|
|
set(OPENCV_ICV_HASH "ea08487b810baad2f68aca87b74a2db9")
|
|
endif()
|
|
elseif(WIN32 AND NOT ARM)
|
|
set(OPENCV_ICV_PLATFORM "windows")
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_win")
|
|
if(X86_64)
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_win_intel64_20230919_general.zip")
|
|
set(OPENCV_ICV_HASH "538a819ec84193a9c9f3c0f8df0be8b7")
|
|
else()
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_win_ia32_20230919_general.zip")
|
|
set(OPENCV_ICV_HASH "8ff93c69415ab0835cc1e94dc5660f5d")
|
|
endif()
|
|
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}"
|
|
ID IPPICV
|
|
STATUS res
|
|
UNPACK RELATIVE_URL)
|
|
|
|
if(res)
|
|
set(${root_var} "${THE_ROOT}/${OPENCV_ICV_PACKAGE_SUBDIR}" PARENT_SCOPE)
|
|
endif()
|
|
endfunction()
|