d456079b7e
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
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
#
|
|
# $Id$
|
|
#
|
|
# - Find portaudio
|
|
# Find the native PORTAUDIO includes and library
|
|
#
|
|
# PORTAUDIO_INCLUDE_DIRS - where to find portaudio.h, etc.
|
|
# PORTAUDIO_LIBRARIES - List of libraries when using portaudio.
|
|
# PORTAUDIO_FOUND - True if portaudio found.
|
|
|
|
|
|
IF (PORTAUDIO_INCLUDE_DIRS)
|
|
# Already in cache, be silent
|
|
SET(PORTAUDIO_FIND_QUIETLY TRUE)
|
|
ENDIF (PORTAUDIO_INCLUDE_DIRS)
|
|
|
|
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} )
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set PORTAUDIO_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PORTAUDIO DEFAULT_MSG PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR)
|
|
|
|
IF(PORTAUDIO_FOUND)
|
|
SET( PORTAUDIO_LIBRARIES ${PORTAUDIO_LIBRARY} )
|
|
SET( PORTAUDIO_INCLUDE_DIRS ${PORTAUDIO_INCLUDE_DIR} )
|
|
ELSE(PORTAUDIO_FOUND)
|
|
SET( PORTAUDIO_LIBRARIES )
|
|
SET( PORTAUDIO_INCLUDE_DIRS )
|
|
ENDIF(PORTAUDIO_FOUND)
|
|
|
|
MARK_AS_ADVANCED( PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIRS )
|