/[pcsx2_0.9.7]/trunk/cmake/FindSoundTouch.cmake
ViewVC logotype

Contents of /trunk/cmake/FindSoundTouch.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (9 years, 4 months ago) by william
File size: 990 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 # Try to find SoundTouch
2 # Once done, this will define
3 #
4 # SOUNDTOUCH_FOUND - system has SoundTouch
5 # SOUNDTOUCH_INCLUDE_DIR - the SoundTouch include directories
6 # SOUNDTOUCH_LIBRARIES - link these to use SoundTouch
7
8 if(SOUNDTOUCH_INCLUDE_DIR AND SOUNDTOUCH_LIBRARIES)
9 set(SOUNDTOUCH_FIND_QUIETLY TRUE)
10 endif(SOUNDTOUCH_INCLUDE_DIR AND SOUNDTOUCH_LIBRARIES)
11
12 # include dir
13 #find_path(SOUNDTOUCH_INCLUDE_DIR SoundTouch.h
14 # /usr/include/soundtouch
15 # /usr/local/include/soundtouch
16 # )
17 find_path(SOUNDTOUCH_INCLUDE_DIR soundtouch/SoundTouch.h)
18
19 # finally the library itself
20 find_library(libSoundTouch NAMES SoundTouch)
21 set(SOUNDTOUCH_LIBRARIES ${libSoundTouch})
22
23 # handle the QUIETLY and REQUIRED arguments and set SOUNDTOUCH_FOUND to TRUE if
24 # all listed variables are TRUE
25 include(FindPackageHandleStandardArgs)
26 find_package_handle_standard_args(SoundTouch DEFAULT_MSG SOUNDTOUCH_LIBRARIES SOUNDTOUCH_INCLUDE_DIR)
27
28 mark_as_advanced(SOUNDTOUCH_LIBRARIES SOUNDTOUCH_INCLUDE_DIR)
29

  ViewVC Help
Powered by ViewVC 1.1.22