Manage anything

You can manage anything that can be downloaded by URL and checked with SHA1 hash:

  • C/C++ packages
hunter_add_package(Boost)
find_package(Boost CONFIG REQUIRED)

hunter_add_package(OpenSSL)
find_package(OpenSSL REQUIRED)
  • CMake modules
hunter_add_package(Sugar)
include("${SUGAR_ROOT}/cmake/Sugar")

include(sugar_files)
sugar_files(...)
set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV modules")
if(OPENCV_WITH_EXTRA_MODULES)
  hunter_add_package(OpenCV-Extra)
  set(OPENCV_EXTRA_MODULES_PATH "${OPENCV-EXTRA_ROOT}/modules")
endif()
  • Resources (pictures, data for testing, …)
hunter_add_package(MyData)

add_test(NAME FooTest1 COMMAND foo --use-data "${MYDATA_ROOT}/case-1.png")
add_test(NAME FooTest2 COMMAND foo --use-data "${MYDATA_ROOT}/case-2.png")
# ...