mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 20:34:22 +02:00
Add liblastfm2 and make tomahawk build against it
This commit is contained in:
22
thirdparty/liblastfm2/cmake/modules/FindLibSamplerate.cmake
vendored
Normal file
22
thirdparty/liblastfm2/cmake/modules/FindLibSamplerate.cmake
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# This file is copyrighted under the BSD-license for buildsystem files of KDE
|
||||
# copyright 2010, Patrick von Reth <patrick.vonreth@gmail.com>
|
||||
#
|
||||
#
|
||||
# - Try to find the libsamplerate library
|
||||
# Once done this will define
|
||||
#
|
||||
# LIBSAMPLERATE_FOUND Set to TRUE if libsamplerate librarys and include directory is found
|
||||
# LIBSAMPLERATE_LIBRARY The libsamplerate librarys
|
||||
# LIBSAMPLERATE_INCLUDE_DIR The libsamplerate include directory
|
||||
|
||||
|
||||
find_library(LIBSAMPLERATE_LIBRARY NAMES samplerate libsamplerate-0 samplerate-0)
|
||||
|
||||
find_path(LIBSAMPLERATE_INCLUDE_DIR samplerate.h)
|
||||
|
||||
if(LIBSAMPLERATE_LIBRARY AND LIBSAMPLERATE_INCLUDE_DIR)
|
||||
set(LIBSAMPLERATE_FOUND TRUE)
|
||||
message(STATUS "Found libsamplerate ${LIBSAMPLERATE_LIBRARY}")
|
||||
else(LIBSAMPLERATE_LIBRARY AND LIBSAMPLERATE_PLUGIN_PATH)
|
||||
message(STATUS "Could not find libsamplerate, get it http://www.mega-nerd.com/SRC/")
|
||||
endif(LIBSAMPLERATE_LIBRARY AND LIBSAMPLERATE_INCLUDE_DIR)
|
Reference in New Issue
Block a user