File: FindUriParser.cmake

package info (click to toggle)
libkml 1.3.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,660 kB
  • sloc: cpp: 48,088; python: 2,008; xml: 1,806; ansic: 1,766; php: 223; java: 195; ruby: 109; perl: 108; sh: 42; makefile: 17
file content (31 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Find the UriParser library
# Defines:

#  URIPARSER_INCLUDE_DIR - UriParser include directory
#  URIPARSER_LIBRARY     - UriParser library file
#  URIPARSER_FOUND       - TRUE if UriParser is found

if (URIPARSER_INCLUDE_DIR)
 #check cache
  set(URIPARSER_FIND_QUIETLY TRUE)
endif ()


if (NOT URIPARSER_INCLUDE_DIR)
    find_path(URIPARSER_INCLUDE_DIR NAMES uriparser/Uri.h uriparser/UriBase.h )
endif ()

find_library(URIPARSER_LIBRARY NAMES uriparser)

include( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( URIPARSER DEFAULT_MSG URIPARSER_LIBRARY URIPARSER_INCLUDE_DIR )

mark_as_advanced( URIPARSER_INCLUDE_DIR URIPARSER_LIBRARY )

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