mirror of
https://github.com/LMMS/lmms.git
synced 2026-02-02 18:54:29 -05:00
The PortAudio backend lay down broken for quite a while. However as it offers much better realtime capabilities on Windows compared to SDL, I started to resurrect it, removed support for PortAudio < 1.9 and fixed various bugs and crashes.
37 lines
1.3 KiB
CMake
37 lines
1.3 KiB
CMake
# - Try to find Portaudio
|
|
# Once done this will define
|
|
#
|
|
# PORTAUDIO_FOUND - system has Portaudio
|
|
# PORTAUDIO_INCLUDE_DIRS - the Portaudio include directory
|
|
# PORTAUDIO_LIBRARIES - Link these to use Portaudio
|
|
# PORTAUDIO_DEFINITIONS - Compiler switches required for using Portaudio
|
|
#
|
|
# Copyright (c) 2006 Andreas Schneider <mail@cynapses.org>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the New BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
#
|
|
|
|
|
|
if (PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS)
|
|
# in cache already
|
|
set(PORTAUDIO_FOUND TRUE)
|
|
else (PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS)
|
|
include(FindPkgConfig)
|
|
pkg_check_modules(PORTAUDIO portaudio-2.0)
|
|
if (PORTAUDIO_FOUND)
|
|
if (NOT Portaudio_FIND_QUIETLY)
|
|
message(STATUS "Found Portaudio: ${PORTAUDIO_LIBRARIES}")
|
|
endif (NOT Portaudio_FIND_QUIETLY)
|
|
else (PORTAUDIO_FOUND)
|
|
if (Portaudio_FIND_REQUIRED)
|
|
message(FATAL_ERROR "Could not find Portaudio")
|
|
endif (Portaudio_FIND_REQUIRED)
|
|
endif (PORTAUDIO_FOUND)
|
|
|
|
# show the PORTAUDIO_INCLUDE_DIRS and PORTAUDIO_LIBRARIES variables only in the advanced view
|
|
mark_as_advanced(PORTAUDIO_INCLUDE_DIRS PORTAUDIO_LIBRARIES)
|
|
|
|
endif (PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS)
|
|
|