2014-02-26 22:43:31 -08:00
|
|
|
project(mac-capture)
|
|
|
|
|
|
|
|
find_library(COREAUDIO CoreAudio)
|
|
|
|
find_library(AUDIOUNIT AudioUnit)
|
|
|
|
find_library(COREFOUNDATION CoreFoundation)
|
|
|
|
|
|
|
|
include_directories(${COREAUDIO}
|
|
|
|
${AUDIOUNIT}
|
|
|
|
${COREFOUNDATION})
|
|
|
|
|
2014-03-04 06:10:33 -08:00
|
|
|
set(mac-capture_HEADERS
|
|
|
|
audio-device-enum.h
|
|
|
|
mac-helpers.h)
|
|
|
|
|
2014-02-26 22:43:31 -08:00
|
|
|
set(mac-capture_SOURCES
|
|
|
|
plugin-main.c
|
2014-03-04 06:10:33 -08:00
|
|
|
audio-device-enum.c
|
2014-02-26 22:43:31 -08:00
|
|
|
mac-audio.c)
|
|
|
|
|
|
|
|
add_library(mac-capture MODULE
|
2014-03-04 06:10:33 -08:00
|
|
|
${mac-capture_SOURCES}
|
|
|
|
${mac-capture_HEADERS})
|
2014-02-26 22:43:31 -08:00
|
|
|
target_link_libraries(mac-capture
|
|
|
|
libobs
|
|
|
|
${COREAUDIO}
|
|
|
|
${AUDIOUNIT}
|
|
|
|
${COREFOUNDATION})
|
|
|
|
|
|
|
|
install_obs_plugin(mac-capture)
|