/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/r3113/cmake/FindPortAudio.cmake
ViewVC logotype

Contents of /branch/debug/0.X/0.9.X/0.9.7/r3113/cmake/FindPortAudio.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations) (download)
Tue Sep 7 06:17:51 2010 UTC (10 years, 5 months ago) by william
File size: 905 byte(s)
create working branch for pcsx2-0.9.7-r3113-debug
1 # Try to find PortAudio
2 # Once done, this will define
3 #
4 # PORTAUDIO_FOUND - system has PortAudio
5 # PORTAUDIO_INCLUDE_DIR - the PortAudio include directories
6 # PORTAUDIO_LIBRARIES - link these to use PortAudio
7
8 if(PORTAUDIO_INCLUDE_DIR AND PORTAUDIO_LIBRARIES)
9 set(PORTAUDIO_FIND_QUIETLY TRUE)
10 endif(PORTAUDIO_INCLUDE_DIR AND PORTAUDIO_LIBRARIES)
11
12 # include dir
13 find_path(PORTAUDIO_INCLUDE_DIR portaudio.h)
14
15 # finally the library itself
16 find_library(libPortAudio NAMES portaudio)
17 find_library(libPortAudioCpp NAMES portaudiocpp)
18 set(PORTAUDIO_LIBRARIES ${libPortAudio} ${libPortAudioCpp})
19
20 # handle the QUIETLY and REQUIRED arguments and set PORTAUDIO_FOUND to TRUE if
21 # all listed variables are TRUE
22 include(FindPackageHandleStandardArgs)
23 find_package_handle_standard_args(PortAudio DEFAULT_MSG PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIR)
24
25 mark_as_advanced(PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIR)
26

  ViewVC Help
Powered by ViewVC 1.1.22