diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-31 19:39:48 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-31 19:39:48 +0100 |
commit | 516bc854369243b2f1ba4f1c019aca06cbbd736e (patch) | |
tree | 82cbc27a8975af41b694090172421e8dd83c9d92 /src/FindFaad.cmake | |
parent | 9312c14b47a2d6e58238902d1424ae8d45d73ac5 (diff) | |
download | pianobar-516bc854369243b2f1ba4f1c019aca06cbbd736e.tar.gz pianobar-516bc854369243b2f1ba4f1c019aca06cbbd736e.tar.bz2 pianobar-516bc854369243b2f1ba4f1c019aca06cbbd736e.zip |
Whoops, forgot to add new files to last commit...
Diffstat (limited to 'src/FindFaad.cmake')
-rw-r--r-- | src/FindFaad.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/FindFaad.cmake b/src/FindFaad.cmake new file mode 100644 index 0000000..9a8fc57 --- /dev/null +++ b/src/FindFaad.cmake @@ -0,0 +1,35 @@ +# FAAD_INCLUDE_DIRS - where to find curl/curl.h, etc. +# FAAD_LIBRARIES - List of libraries when using curl. +# FAAD_FOUND - True if curl found. + +# Look for the header file. +FIND_PATH(FAAD_INCLUDE_DIR NAMES faad.h) +MARK_AS_ADVANCED(FAAD_INCLUDE_DIR) + +# Look for the library. +FIND_LIBRARY(FAAD_LIBRARY NAMES faad) +MARK_AS_ADVANCED(FAAD_LIBRARY) + +# Copy the results to the output variables. +IF(FAAD_INCLUDE_DIR AND FAAD_LIBRARY) + SET(FAAD_FOUND 1) + SET(FAAD_LIBRARIES ${FAAD_LIBRARY}) + SET(FAAD_INCLUDE_DIRS ${FAAD_INCLUDE_DIR}) +ELSE(FAAD_INCLUDE_DIR AND FAAD_LIBRARY) + SET(FAAD_FOUND 0) + SET(FAAD_LIBRARIES) + SET(FAAD_INCLUDE_DIRS) +ENDIF(FAAD_INCLUDE_DIR AND FAAD_LIBRARY) + +# Report the results. +IF(NOT FAAD_FOUND) + SET(FAAD_DIR_MESSAGE + "FAAD was not found. Make sure FAAD_LIBRARY and FAAD_INCLUDE_DIR are set.") + IF(NOT FAAD_FIND_QUIETLY) + MESSAGE(STATUS "${FAAD_DIR_MESSAGE}") + ELSE(NOT FAAD_FIND_QUIETLY) + IF(FAAD_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "${FAAD_DIR_MESSAGE}") + ENDIF(FAAD_FIND_REQUIRED) + ENDIF(NOT FAAD_FIND_QUIETLY) +ENDIF(NOT FAAD_FOUND) |