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

Contents of /trunk/cmake/FindPortAudio.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 11 months ago) by william
File size: 905 byte(s)
committing r3113 initial commit again...
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