PageRenderTime 122ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 60ms app.codeStats 0ms

/thirdparty/liblastfm2/cmake/modules/FindLibSamplerate.cmake

http://github.com/tomahawk-player/tomahawk
CMake | 22 lines | 8 code | 4 blank | 10 comment | 1 complexity | 8fb987d78d03084b571c2dd1568f9d6c MD5 | raw file
 1# This file is copyrighted under the BSD-license for buildsystem files of KDE
 2# copyright 2010, Patrick von Reth <patrick.vonreth@gmail.com>
 3#
 4#
 5# - Try to find the libsamplerate library
 6# Once done this will define
 7#
 8#  LIBSAMPLERATE_FOUND          Set to TRUE if libsamplerate librarys and include directory is found
 9#  LIBSAMPLERATE_LIBRARY        The libsamplerate librarys
10#  LIBSAMPLERATE_INCLUDE_DIR    The libsamplerate include directory
11
12
13find_library(LIBSAMPLERATE_LIBRARY NAMES samplerate libsamplerate-0 samplerate-0)
14
15find_path(LIBSAMPLERATE_INCLUDE_DIR samplerate.h)
16
17if(LIBSAMPLERATE_LIBRARY AND LIBSAMPLERATE_INCLUDE_DIR)
18    set(LIBSAMPLERATE_FOUND TRUE)
19    message(STATUS "Found libsamplerate ${LIBSAMPLERATE_LIBRARY}")
20else(LIBSAMPLERATE_LIBRARY AND LIBSAMPLERATE_PLUGIN_PATH)
21    message(STATUS "Could not find libsamplerate, get it http://www.mega-nerd.com/SRC/")
22endif(LIBSAMPLERATE_LIBRARY AND LIBSAMPLERATE_INCLUDE_DIR)