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

# Load used modules
include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_download)
include(hunter_pick_scheme)

# List of versions here...
hunter_add_version(
        PACKAGE_NAME
        imgui
        VERSION
        "1.82-hunter-dock"
        URL
        "https://github.com/InfiniBrains/imgui/archive/v1.82-hunter-dock.tar.gz"
        SHA1
        50605b188a34566695c3ff5ac7a7e907138e7b5e
)

hunter_add_version(
    PACKAGE_NAME
    imgui
    VERSION
    "1.70.p0"
    URL
    "https://github.com/hunter-packages/imgui/archive/v1.70.p0.tar.gz"
    SHA1
    36a806ecc3b43204e4a895d6842f88519d3d4b98
)

hunter_add_version(
    PACKAGE_NAME
    imgui
    VERSION
    "1.62"
    URL
    "https://github.com/hunter-packages/imgui/archive/v1.62.p0.tar.gz"
    SHA1
    0e1fb683036a45372bc34d39c29068443b6d97e6
)

hunter_cmake_args(
    imgui
    CMAKE_ARGS
        IMGUI_BUILD_EXAMPLES=OFF
        IMGUI_ENABLE_TEST_ENGINE=OFF
)

# Pick a download scheme
hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(imgui)
hunter_download(PACKAGE_NAME imgui)
