summaryrefslogtreecommitdiff
path: root/cmake/modules/FindPORTAUDIO.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-09-23 21:45:55 +0000
committerJörg Mayer <jmayer@loplof.de>2013-09-23 21:45:55 +0000
commitd456079b7e928007d4130ffb4ab5ccf49c98481e (patch)
treedba40805065d07057c21b5b77dbb76ec1419bd05 /cmake/modules/FindPORTAUDIO.cmake
parentd74564d6cf9d5e5d5927b51d31220db1c51409e7 (diff)
downloadwireshark-d456079b7e928007d4130ffb4ab5ccf49c98481e.tar.gz
Beginnings of win cmake support (not yet working), created by Graham Bloice,
some smaller changes by me. - README.cmake Document how to (one day) run on Windows - CMakeLists.txt Use MSVC compiler flags for MSVC instead of gcc flags - FindWSWinLibs.cmake New: Creates HINTS for finding includes and libraries inside the Wireshark support library installation. - FindXXX.cmake Make use of HINTS generated by FindWSWinLibs.cmake This has not really been tested on Windows as my installation seems to have automagically downloaded some fixes and is in an inconsistent state since. Will probably need to reinstall. svn path=/trunk/; revision=52194
Diffstat (limited to 'cmake/modules/FindPORTAUDIO.cmake')
-rw-r--r--cmake/modules/FindPORTAUDIO.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/modules/FindPORTAUDIO.cmake b/cmake/modules/FindPORTAUDIO.cmake
index 29f831185c..3735ddb7f7 100644
--- a/cmake/modules/FindPORTAUDIO.cmake
+++ b/cmake/modules/FindPORTAUDIO.cmake
@@ -14,7 +14,10 @@ IF (PORTAUDIO_INCLUDE_DIRS)
SET(PORTAUDIO_FIND_QUIETLY TRUE)
ENDIF (PORTAUDIO_INCLUDE_DIRS)
-FIND_PATH(PORTAUDIO_INCLUDE_DIR portaudio.h)
+INCLUDE(FindWSWinLibs)
+FindWSWinLibs("portaudio_.*" "PORTAUDIO_HINTS")
+
+FIND_PATH(PORTAUDIO_INCLUDE_DIR portaudio.h HINTS "${PORTAUDIO_HINTS}/include" )
SET(PORTAUDIO_NAMES portaudio)
FIND_LIBRARY(PORTAUDIO_LIBRARY NAMES ${PORTAUDIO_NAMES} )