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

44 lines
893 B
CMake
Raw Normal View History

project(mac-capture)
find_library(COREAUDIO CoreAudio)
find_library(AUDIOUNIT AudioUnit)
find_library(COREFOUNDATION CoreFoundation)
find_library(IOSURF IOSurface)
find_library(COCOA Cocoa)
include_directories(${COREAUDIO}
${AUDIOUNIT}
${COREFOUNDATION}
${IOSURF}
${COCOA})
set(mac-capture_HEADERS
audio-device-enum.h
2014-08-19 15:36:24 -07:00
window-utils.h)
set(mac-capture_SOURCES
plugin-main.c
audio-device-enum.c
mac-audio.c
2014-08-19 15:36:24 -07:00
mac-display-capture.m
mac-window-capture.m
2014-08-19 15:36:24 -07:00
window-utils.m)
set_source_files_properties(mac-display-capture.m
mac-window-capture.m
2014-08-19 15:36:24 -07:00
window-utils.m
2014-07-15 10:09:28 -07:00
PROPERTIES LANGUAGE C)
add_library(mac-capture MODULE
${mac-capture_SOURCES}
${mac-capture_HEADERS})
target_link_libraries(mac-capture
libobs
${COREAUDIO}
${AUDIOUNIT}
${COREFOUNDATION}
${IOSURF}
${COCOA})
install_obs_plugin_with_data(mac-capture data)