/[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 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (9 years, 5 months ago) by william
File size: 1029 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
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 # Seems to run OK without libportaudiocpp so do not pull additional dependency
18 # find_library(libPortAudioCpp NAMES portaudiocpp)
19 # set(PORTAUDIO_LIBRARIES ${libPortAudio} ${libPortAudioCpp})
20 set(PORTAUDIO_LIBRARIES ${libPortAudio})
21
22 # handle the QUIETLY and REQUIRED arguments and set PORTAUDIO_FOUND to TRUE if
23 # all listed variables are TRUE
24 include(FindPackageHandleStandardArgs)
25 find_package_handle_standard_args(PortAudio DEFAULT_MSG PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIR)
26
27 mark_as_advanced(PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIR)
28

  ViewVC Help
Powered by ViewVC 1.1.22