2
0

FindNGHTTP2.cmake 422 B

123456789101112131415161718
  1. include(FindPackageHandleStandardArgs)
  2. find_path(NGHTTP2_INCLUDE_DIR "nghttp2/nghttp2.h")
  3. find_library(NGHTTP2_LIBRARY NAMES nghttp2)
  4. find_package_handle_standard_args(NGHTTP2
  5. FOUND_VAR
  6. NGHTTP2_FOUND
  7. REQUIRED_VARS
  8. NGHTTP2_LIBRARY
  9. NGHTTP2_INCLUDE_DIR
  10. FAIL_MESSAGE
  11. "Could NOT find NGHTTP2"
  12. )
  13. set(NGHTTP2_INCLUDE_DIRS ${NGHTTP2_INCLUDE_DIR} )
  14. set(NGHTTP2_LIBRARIES ${NGHTTP2_LIBRARY})