# Copyright (c) 2016-2018, Ruslan Baratov
# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    "0.2-p0"
    URL
    "https://github.com/hunter-packages/dlpack/archive/v0.2-p0.tar.gz"
    SHA1
    0ecb2a1bbf1f5578e92c11f1deda96cf625eb401
)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    "0.2-bee4d1d-p0"
    URL
    "https://github.com/hunter-packages/dlpack/archive/v0.2-bee4d1d-p0.tar.gz"
    SHA1
    86a28f7458fc029dea30a096e2e0f4b78c7719be
)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    0.2-5c792ce
    URL
    "https://github.com/dmlc/dlpack/archive/5c792cef3aee54ad8b7000111c9dc1797f327b59.zip"
    SHA1
    315b8c46ff85ec777fa3e5db06213710f62e1116
)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    "0.2-5c792ce-p0"
    URL
    "https://github.com/hunter-packages/dlpack/archive/v0.2-5c792ce-p0.tar.gz"
    SHA1
    0be27ccdaf2142517e21b62cb3629c363ccebbf2
)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    "0.2-a4aa2f5"
    URL
    "https://github.com/dmlc/dlpack/archive/a4aa2f516b995e5241331db128bec527d24f4cb6.zip"
    SHA1
    387656143ea23920551a881b157e59cffb91ef71
)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    "0.2-0acb731"
    URL
    "https://github.com/dmlc/dlpack/archive/0acb731e0e43d15deee27b66f10e4c5b4e667913.zip"
    SHA1
    4fa2048869dbbc589c05eac3295002b866ee456a
)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    "0.3"
    URL
    "https://github.com/dmlc/dlpack/archive/refs/tags/v0.3.tar.gz"
    SHA1
    75afc586cc6cc0f5ba15edc78360ce34d675be83
)

hunter_add_version(
    PACKAGE_NAME
    dlpack
    VERSION
    "0.4"
    URL
    "https://github.com/dmlc/dlpack/archive/refs/tags/v0.4.tar.gz"
    SHA1
    8bea71c210673bc9c15a9df2cb82730ce5abebea
)

hunter_cmake_args(dlpack CMAKE_ARGS BUILD_MOCK=OFF)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(dlpack)
hunter_download(PACKAGE_NAME dlpack)
