blob: be15975bb69de1ed8d2152ad3f2f38b5041a623b (
plain)
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
32
33
34
35
36
37
|
# - Find readline
#
# LIBAO_INCLUDE_DIRS - where to find curl/curl.h, etc.
# LIBAO_LIBRARIES - List of libraries when using curl.
# LIBAO_FOUND - True if curl found.
# Look for the header file.
FIND_PATH(LIBAO_INCLUDE_DIR NAMES ao/ao.h)
MARK_AS_ADVANCED(LIBAO_INCLUDE_DIR)
# Look for the library.
FIND_LIBRARY(LIBAO_LIBRARY NAMES ao)
MARK_AS_ADVANCED(LIBAO_LIBRARY)
# Copy the results to the output variables.
IF(LIBAO_INCLUDE_DIR AND LIBAO_LIBRARY)
SET(LIBAO_FOUND 1)
SET(LIBAO_LIBRARIES ${LIBAO_LIBRARY})
SET(LIBAO_INCLUDE_DIRS ${LIBAO_INCLUDE_DIR})
ELSE(LIBAO_INCLUDE_DIR AND LIBAO_LIBRARY)
SET(LIBAO_FOUND 0)
SET(LIBAO_LIBRARIES)
SET(LIBAO_INCLUDE_DIRS)
ENDIF(LIBAO_INCLUDE_DIR AND LIBAO_LIBRARY)
# Report the results.
IF(NOT LIBAO_FOUND)
SET(LIBAO_DIR_MESSAGE
"LIBAO was not found. Make sure LIBAO_LIBRARY and LIBAO_INCLUDE_DIR are set.")
IF(NOT LIBAO_FIND_QUIETLY)
MESSAGE(STATUS "${LIBAO_DIR_MESSAGE}")
ELSE(NOT LIBAO_FIND_QUIETLY)
IF(LIBAO_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "${LIBAO_DIR_MESSAGE}")
ENDIF(LIBAO_FIND_REQUIRED)
ENDIF(NOT LIBAO_FIND_QUIETLY)
ENDIF(NOT LIBAO_FOUND)
|