mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
799 B
18 lines
799 B
function(download_orbbec_sdk root_var) |
|
set(ORBBECSDK_DOWNLOAD_DIR "${OpenCV_BINARY_DIR}/3rdparty/orbbecsdk") |
|
set(ORBBECSDK_FILE_HASH_CMAKE "e7566fa915a1b0c02640df41891916fe") |
|
ocv_download(FILENAME "v1.9.4.tar.gz" |
|
HASH ${ORBBECSDK_FILE_HASH_CMAKE} |
|
URL "https://github.com/orbbec/OrbbecSDK/archive/refs/tags/v1.9.4/" |
|
DESTINATION_DIR ${ORBBECSDK_DOWNLOAD_DIR} |
|
ID OrbbecSDK |
|
STATUS res |
|
UNPACK RELATIVE_URL |
|
) |
|
if(${res}) |
|
message(STATUS "orbbec sdk downloaded to: ${ORBBECSDK_DOWNLOAD_DIR}") |
|
set(${root_var} "${ORBBECSDK_DOWNLOAD_DIR}/OrbbecSDK-1.9.4" PARENT_SCOPE) |
|
else() |
|
message(FATAL_ERROR "Failed to download orbbec sdk") |
|
endif() |
|
endfunction() |