You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
669 B

  1. # Find libsndfile
  2. FIND_PATH(LIBSNDFILE_INCLUDE_DIR sndfile.h)
  3. SET(LIBSNDFILE_NAMES ${LIBSNDFILE_NAMES} sndfile libsndfile libsndfile-1)
  4. FIND_LIBRARY(LIBSNDFILE_LIBRARY NAMES ${LIBSNDFILE_NAMES} PATH)
  5. IF(LIBSNDFILE_INCLUDE_DIR AND LIBSNDFILE_LIBRARY)
  6. SET(LIBSNDFILE_FOUND TRUE)
  7. ENDIF(LIBSNDFILE_INCLUDE_DIR AND LIBSNDFILE_LIBRARY)
  8. IF(LIBSNDFILE_FOUND)
  9. IF(NOT LibSndFile_FIND_QUIETLY)
  10. MESSAGE(STATUS "Found LibSndFile: ${LIBSNDFILE_LIBRARY}")
  11. ENDIF(NOT LibSndFile_FIND_QUIETLY)
  12. ELSE(LIBSNDFILE_FOUND)
  13. IF(LibSndFile_FIND_REQUIRED)
  14. MESSAGE(FATAL_ERROR "Could not find sndfile")
  15. ENDIF(LibSndFile_FIND_REQUIRED)
  16. ENDIF(LIBSNDFILE_FOUND)