summaryrefslogtreecommitdiffstats
path: root/contrib/cmake/Finduriparser.cmake
blob: 5c0668fa06ce0408ab7ff04392ad5cb09f831a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
find_path(URIPARSER_INCLUDE_DIR NAMES uriparser/UriBase.h)
find_library(URIPARSER_LIBRARY NAMES uriparser)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(URIPARSER DEFAULT_MSG URIPARSER_LIBRARY URIPARSER_INCLUDE_DIR)

if (URIPARSER_FOUND)
  set(URIPARSER_LIBRARIES ${URIPARSER_LIBRARY})
  set(URIPARSER_INCLUDE_DIRS ${URIPARSER_INCLUDE_DIR})
endif()
  
mark_as_advanced(URIPARSER_INCLUDE_DIR)
mark_as_advanced(URIPARSER_LIBRARY)