mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-09 21:40:23 +00:00
libusb: detect portaudio and enable it in CMake project
This commit is contained in:
parent
6e735d0a1b
commit
14d2ee6790
@ -10,6 +10,16 @@ include_directories(${LIBUSB_INCLUDE_DIRS})
|
|||||||
link_directories(${LIBUSB_LIBRARY_DIRS})
|
link_directories(${LIBUSB_LIBRARY_DIRS})
|
||||||
link_libraries(${LIBUSB_LIBRARIES})
|
link_libraries(${LIBUSB_LIBRARIES})
|
||||||
|
|
||||||
|
# portaudio
|
||||||
|
pkg_check_modules(PORTAUDIO REQUIRED portaudio-2.0)
|
||||||
|
if(PORTAUDIO_FOUND)
|
||||||
|
message("HAVE_PORTAUDIO")
|
||||||
|
include_directories(${PORTAUDIO_INCLUDE_DIRS})
|
||||||
|
link_directories(${PORTAUDIO_LIBRARY_DIRS})
|
||||||
|
link_libraries(${PORTAUDIO_LIBRARIES})
|
||||||
|
add_compile_definitions(HAVE_PORTAUDIO)
|
||||||
|
endif()
|
||||||
|
|
||||||
# extra compiler warnings
|
# extra compiler warnings
|
||||||
if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*")
|
if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*")
|
||||||
# using Clang
|
# using Clang
|
||||||
|
Loading…
x
Reference in New Issue
Block a user