Skip to content
This repository
tree: 02f980078d
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 24 lines (19 sloc) 0.727 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Base Io build system
# Written by Jeremy Tregunna <jeremy.tregunna@me.com>
#
# Find libsamplerate.

FIND_PATH(SAMPLERATE_INCLUDE_DIR samplerate.h)

SET(SAMPLERATE_NAMES ${SAMPLERATE_NAMES} samplerate libsamplerate)
FIND_LIBRARY(SAMPLERATE_LIBRARY NAMES ${SAMPLERATE_NAMES} PATH)

IF(SAMPLERATE_INCLUDE_DIR AND SAMPLERATE_LIBRARY)
SET(SAMPLERATE_FOUND TRUE)
ENDIF(SAMPLERATE_INCLUDE_DIR AND SAMPLERATE_LIBRARY)

IF(SAMPLERATE_FOUND)
IF(NOT SampleRate_FIND_QUIETLY)
MESSAGE(STATUS "Found SampleRate: ${SAMPLERATE_LIBRARY}")
ENDIF (NOT SampleRate_FIND_QUIETLY)
ELSE(SAMPLERATE_FOUND)
IF(SampleRate_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find samplerate")
ENDIF(SampleRate_FIND_REQUIRED)
ENDIF (SAMPLERATE_FOUND)
Something went wrong with that request. Please try again.