]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/CMake/FindCARES.cmake
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / CMake / FindCARES.cmake
1 # - Find c-ares
2 # Find the c-ares includes and library
3 # This module defines
4 #  CARES_INCLUDE_DIR, where to find ares.h, etc.
5 #  CARES_LIBRARIES, the libraries needed to use c-ares.
6 #  CARES_FOUND, If false, do not try to use c-ares.
7 # also defined, but not for general use are
8 # CARES_LIBRARY, where to find the c-ares library.
9
10 FIND_PATH(CARES_INCLUDE_DIR ares.h
11   /usr/local/include
12   /usr/include
13   )
14
15 SET(CARES_NAMES ${CARES_NAMES} cares)
16 FIND_LIBRARY(CARES_LIBRARY
17   NAMES ${CARES_NAMES}
18   PATHS /usr/lib /usr/local/lib
19   )
20
21 IF (CARES_LIBRARY AND CARES_INCLUDE_DIR)
22   SET(CARES_LIBRARIES ${CARES_LIBRARY})
23   SET(CARES_FOUND "YES")
24 ELSE (CARES_LIBRARY AND CARES_INCLUDE_DIR)
25   SET(CARES_FOUND "NO")
26 ENDIF (CARES_LIBRARY AND CARES_INCLUDE_DIR)
27
28
29 IF (CARES_FOUND)
30   IF (NOT CARES_FIND_QUIETLY)
31     MESSAGE(STATUS "Found c-ares: ${CARES_LIBRARIES}")
32   ENDIF (NOT CARES_FIND_QUIETLY)
33 ELSE (CARES_FOUND)
34   IF (CARES_FIND_REQUIRED)
35     MESSAGE(FATAL_ERROR "Could not find c-ares library")
36   ENDIF (CARES_FIND_REQUIRED)
37 ENDIF (CARES_FOUND)
38
39 MARK_AS_ADVANCED(
40   CARES_LIBRARY
41   CARES_INCLUDE_DIR
42   )