Skip to content
This repository
Newer
Older
100644 24 lines (19 sloc) 0.712 kb
ab8cff74 »
2010-05-09 Added Clutter (broken) and LibSndFile addons to CMake
1 # Base Io build system
2 # Written by Jeremy Tregunna <jeremy.tregunna@me.com>
3 #
4 # Find libsndfile.
5
6 FIND_PATH(LIBSNDFILE_INCLUDE_DIR sndfile.h)
7
8 SET(LIBSNDFILE_NAMES ${LIBSNDFILE_NAMES} sndfile libsndfile)
9 FIND_LIBRARY(LIBSNDFILE_LIBRARY NAMES ${LIBSNDFILE_NAMES} PATH)
10
11 IF(LIBSNDFILE_INCLUDE_DIR AND LIBSNDFILE_LIBRARY)
12 SET(LIBSNDFILE_FOUND TRUE)
13 ENDIF(LIBSNDFILE_INCLUDE_DIR AND LIBSNDFILE_LIBRARY)
14
15 IF(LIBSNDFILE_FOUND)
16 IF(NOT LibSndFile_FIND_QUIETLY)
17 MESSAGE(STATUS "Found LibSndFile: ${LIBSNDFILE_LIBRARY}")
18 ENDIF (NOT LibSndFile_FIND_QUIETLY)
19 ELSE(LIBSNDFILE_FOUND)
20 IF(LibSndFile_FIND_REQUIRED)
21 MESSAGE(FATAL_ERROR "Could not find sndfile")
22 ENDIF(LibSndFile_FIND_REQUIRED)
23 ENDIF (LIBSNDFILE_FOUND)
Something went wrong with that request. Please try again.