mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-19 08:06:40 +00:00
6e118887a5
[cmake]: * Update to use the above patch. * Remove a52. Need to use system version. * Remove stub file. Append pcsx2 to 3rparty library to ease futur support. Important Note: codeblock will probably need some update. (add 3rdparty/soundtouch_linux_include in include path) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3200 96395faa-99c1-11dd-bbfe-3dabce05a288
30 lines
990 B
CMake
30 lines
990 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.h
|
|
# /usr/include/soundtouch
|
|
# /usr/local/include/soundtouch
|
|
# )
|
|
find_path(SOUNDTOUCH_INCLUDE_DIR soundtouch/SoundTouch.h)
|
|
|
|
# finally the library itself
|
|
find_library(libSoundTouch NAMES SoundTouch)
|
|
set(SOUNDTOUCH_LIBRARIES ${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)
|
|
|