mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-19 08:06:40 +00:00
b64452f074
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2467 96395faa-99c1-11dd-bbfe-3dabce05a288
27 lines
913 B
CMake
27 lines
913 B
CMake
# Try to find SoundTouch
|
|
# Once done, this will define
|
|
#
|
|
# SOUNDTOUCH_FOUND - system has SoundTouch
|
|
# SOUNDTOUCH_INCLUDE_DIR - the SoundTouch include directories
|
|
# SOUNDTOUCH_LIBRARIES - link these to use SoundTouch
|
|
|
|
if(SOUNDTOUCH_INCLUDE_DIR AND SOUNDTOUCH_LIBRARIES)
|
|
set(SOUNDTOUCH_FIND_QUIETLY TRUE)
|
|
endif(SOUNDTOUCH_INCLUDE_DIR AND SOUNDTOUCH_LIBRARIES)
|
|
|
|
# include dir
|
|
find_path(SOUNDTOUCH_INCLUDE_DIR soundtouch/SoundTouch.h)
|
|
|
|
# finally the library itself
|
|
find_library(libBPM NAMES BPM)
|
|
find_library(libSoundTouch NAMES SoundTouch)
|
|
set(SOUNDTOUCH_LIBRARIES ${libBPM} ${libSoundTouch})
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set SOUNDTOUCH_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(SoundTouch DEFAULT_MSG SOUNDTOUCH_LIBRARIES SOUNDTOUCH_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(SOUNDTOUCH_LIBRARIES SOUNDTOUCH_INCLUDE_DIR)
|
|
|