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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.2 KiB
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)
find_library(COREVIDEO CoreVideo)
find_library(COREMEDIA CoreMedia)
find_library(SCREENCAPTUREKIT ScreenCaptureKit)
add_library(mac-capture MODULE)
add_library(OBS::capture ALIAS mac-capture)
target_sources(
mac-capture
PRIVATE plugin-main.c
audio-device-enum.c
audio-device-enum.h
mac-audio.c
mac-display-capture.m
mac-screen-capture.m
mac-window-capture.m
window-utils.m
window-utils.h)
target_link_libraries(mac-capture PRIVATE OBS::libobs ${COREAUDIO} ${AUDIOUNIT}
${COREFOUNDATION} ${IOSURF} ${COCOA})
2020-05-13 06:37:01 -07:00
if(SCREENCAPTUREKIT)
target_link_libraries(mac-capture PRIVATE OBS::libobs ${COREVIDEO}
${COREMEDIA})
target_link_options(mac-capture PRIVATE SHELL:-weak_framework
ScreenCaptureKit)
target_link_options(libobs PRIVATE SHELL:-weak_framework ScreenCaptureKit)
endif()
set_target_properties(mac-capture PROPERTIES FOLDER "plugins" PREFIX "")
setup_plugin_target(mac-capture)