added FLAC as an export format

This commit is contained in:
Andrew Kelley
2009-08-12 07:18:16 -07:00
parent 6cf2d83808
commit fb733051bd
8 changed files with 281 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
# Find libflac++
# find the native libflac++ includes and library
#
#
# FLAC_INCLUDE_DIRS - where to find the .h files
# FLAC_LIBRARIES - list of libraries when using libflac++
# FLAC_FOUND - True if libflac++ found.
FIND_PATH(FLAC_INCLUDE_DIRS all.h /usr/include/FLAC++ /local/usr/include/FLAC++)
FIND_PATH(FLAC_INCLUDE_DIRS decoder.h /usr/include/FLAC++ /local/usr/include/FLAC++)
FIND_PATH(FLAC_INCLUDE_DIRS encoder.h /usr/include/FLAC++ /local/usr/include/FLAC++)
FIND_PATH(FLAC_INCLUDE_DIRS export.h /usr/include/FLAC++ /local/usr/include/FLAC++)
FIND_PATH(FLAC_INCLUDE_DIRS metadata.h /usr/include/FLAC++ /local/usr/include/FLAC++)
FIND_LIBRARY(FLAC_LIBRARIES NAMES FLAC++ PATH /usr/lib /usr/local/lib)
IF(FLAC_INCLUDE_DIRS AND FLAC_LIBRARIES)
SET(FLAC_FOUND TRUE)
ENDIF(FLAC_INCLUDE_DIRS AND FLAC_LIBRARIES)
IF(FLAC_FOUND)
IF(NOT FLAC_FIND_QUIETLY)
MESSAGE(STATUS "Found libflac++: ${FLAC_LIBRARIES}")
ENDIF(NOT FLAC_FIND_QUIETLY)
ELSE(FLAC_FOUND)
SET(FLAC_LIBRARIES "")
SET(FLAC_INCLUDE_DIRS "")
MESSAGE(STATUS "Could not find libflac++")
ENDIF(FLAC_FOUND)
MARK_AS_ADVANCED( FLAC_LIBRARIES FLAC_INCLUDE_DIRS )