httplibConfig.cmake.in 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Generates a macro to auto-configure everything
  2. @PACKAGE_INIT@
  3. include(CMakeFindDependencyMacro)
  4. # We add find_dependency calls here to not make the end-user have to call them.
  5. find_dependency(Threads REQUIRED)
  6. if(@HTTPLIB_REQUIRE_OPENSSL@)
  7. find_dependency(OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@ REQUIRED)
  8. # Lets you check if these options were correctly enabled for your install
  9. set(HTTPLIB_IS_USING_OPENSSL TRUE)
  10. elseif(@HTTPLIB_USE_OPENSSL_IF_AVAILABLE@)
  11. # Look quietly since it's optional
  12. find_dependency(OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@ QUIET)
  13. # Lets you check if these options were correctly enabled for your install
  14. set(HTTPLIB_IS_USING_OPENSSL @OPENSSL_FOUND@)
  15. else()
  16. set(HTTPLIB_IS_USING_OPENSSL FALSE)
  17. endif()
  18. if(@HTTPLIB_REQUIRE_ZLIB@)
  19. find_dependency(ZLIB REQUIRED)
  20. # Lets you check if these options were correctly enabled for your install
  21. set(HTTPLIB_IS_USING_ZLIB TRUE)
  22. elseif(@HTTPLIB_USE_ZLIB_IF_AVAILABLE@)
  23. # Look quietly since it's optional
  24. find_dependency(ZLIB QUIET)
  25. # Lets you check if these options were correctly enabled for your install
  26. set(HTTPLIB_IS_USING_ZLIB @ZLIB_FOUND@)
  27. else()
  28. set(HTTPLIB_IS_USING_ZLIB FALSE)
  29. endif()
  30. # Lets the end-user find the header path if needed
  31. # This is helpful if you're using Cmake's pre-compiled header feature
  32. set_and_check(HTTPLIB_HEADER_PATH "@PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR@/httplib.h")
  33. # Brings in the target library
  34. include("${CMAKE_CURRENT_LIST_DIR}/httplibTargets.cmake")