blob: 4e566cf028127164264f21e70826f5c679f8443e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001include(FindPackageHandleStandardArgs)
2
3find_path(NGHTTP2_INCLUDE_DIR "nghttp2/nghttp2.h")
4
5find_library(NGHTTP2_LIBRARY NAMES nghttp2)
6
7find_package_handle_standard_args(NGHTTP2
8 FOUND_VAR
9 NGHTTP2_FOUND
10 REQUIRED_VARS
11 NGHTTP2_LIBRARY
12 NGHTTP2_INCLUDE_DIR
13 FAIL_MESSAGE
14 "Could NOT find NGHTTP2"
15)
16
17set(NGHTTP2_INCLUDE_DIRS ${NGHTTP2_INCLUDE_DIR} )
18set(NGHTTP2_LIBRARIES ${NGHTTP2_LIBRARY})