obs-studio/plugins/mac-capture/CMakeLists.txt

30 lines
582 B
CMake
Raw Normal View History

project(mac-capture)
find_library(COREAUDIO CoreAudio)
find_library(AUDIOUNIT AudioUnit)
find_library(COREFOUNDATION CoreFoundation)
include_directories(${COREAUDIO}
${AUDIOUNIT}
${COREFOUNDATION})
set(mac-capture_HEADERS
audio-device-enum.h
mac-helpers.h)
set(mac-capture_SOURCES
plugin-main.c
audio-device-enum.c
mac-audio.c)
add_library(mac-capture MODULE
${mac-capture_SOURCES}
${mac-capture_HEADERS})
target_link_libraries(mac-capture
libobs
${COREAUDIO}
${AUDIOUNIT}
${COREFOUNDATION})
install_obs_plugin(mac-capture)