2010-01-21 15:12:50 +00:00
|
|
|
# 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
|
|
|
|
|
2010-01-22 04:36:49 +00:00
|
|
|
if(SOUNDTOUCH_INCLUDE_DIR AND SOUNDTOUCH_LIBRARIES)
|
|
|
|
set(SOUNDTOUCH_FIND_QUIETLY TRUE)
|
|
|
|
endif(SOUNDTOUCH_INCLUDE_DIR AND SOUNDTOUCH_LIBRARIES)
|
2010-01-21 15:12:50 +00:00
|
|
|
|
|
|
|
# include dir
|
2010-06-10 07:14:53 +00:00
|
|
|
find_path(SOUNDTOUCH_INCLUDE_DIR SoundTouch.h
|
|
|
|
/usr/include/soundtouch
|
|
|
|
/usr/local/include/soundtouch
|
|
|
|
)
|
2010-01-21 15:12:50 +00:00
|
|
|
|
|
|
|
# finally the library itself
|
2010-01-22 04:36:49 +00:00
|
|
|
find_library(libSoundTouch NAMES SoundTouch)
|
2010-06-07 13:32:10 +00:00
|
|
|
set(SOUNDTOUCH_LIBRARIES ${libSoundTouch})
|
2010-01-21 15:12:50 +00:00
|
|
|
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set SOUNDTOUCH_FOUND to TRUE if
|
|
|
|
# all listed variables are TRUE
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2010-01-22 04:36:49 +00:00
|
|
|
find_package_handle_standard_args(SoundTouch DEFAULT_MSG SOUNDTOUCH_LIBRARIES SOUNDTOUCH_INCLUDE_DIR)
|
2010-01-21 15:12:50 +00:00
|
|
|
|
2010-01-22 04:36:49 +00:00
|
|
|
mark_as_advanced(SOUNDTOUCH_LIBRARIES SOUNDTOUCH_INCLUDE_DIR)
|
2010-01-21 15:12:50 +00:00
|
|
|
|