19 lines
473 B
CMake
19 lines
473 B
CMake
add_library(ffmpeg_microphone SHARED
|
|
src/ffmpeg_microphone.cpp
|
|
src/microphone_device_discovery.cpp
|
|
)
|
|
|
|
target_include_directories(ffmpeg_microphone PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
add_library(cmvr_es::device::ffmpeg_microphone ALIAS ffmpeg_microphone)
|
|
|
|
target_link_libraries(ffmpeg_microphone PRIVATE
|
|
avfilter
|
|
avdevice
|
|
-lasound
|
|
-lpulse
|
|
cmvr_es::proto
|
|
)
|
|
|
|
install(TARGETS ffmpeg_microphone LIBRARY DESTINATION lib)
|