summaryrefslogtreecommitdiff
path: root/src/FindFaad.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/FindFaad.cmake')
-rw-r--r--src/FindFaad.cmake35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/FindFaad.cmake b/src/FindFaad.cmake
deleted file mode 100644
index 7e3fe99..0000000
--- a/src/FindFaad.cmake
+++ /dev/null
@@ -1,35 +0,0 @@
-# FAAD_INCLUDE_DIRS - where to find neaacdec.h, etc.
-# FAAD_LIBRARIES - List of libraries when using libfaad.
-# FAAD_FOUND - True if libfaad found.
-
-# Look for the header file.
-FIND_PATH(FAAD_INCLUDE_DIR NAMES neaacdec.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)