25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FindLibSndFile.cmake 681 B

1234567891011121314151617181920
  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)