yolobs-studio/plugins/mac-avcapture/CMakeLists.txt

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

46 lines
1 KiB
CMake
Raw Normal View History

2016-02-23 23:16:51 +00:00
project(mac-avcapture)
find_library(AVFOUNDATION AVFoundation)
find_library(COCOA Cocoa)
find_library(COREFOUNDATION CoreFoundation)
find_library(COREMEDIA CoreMedia)
find_library(COREVIDEO CoreVideo)
find_library(COCOA Cocoa)
2017-06-29 19:01:10 +00:00
find_library(COREMEDIAIO CoreMediaIO)
2016-02-23 23:16:51 +00:00
include_directories(${AVFOUNDATION}
${COCOA}
${COREFOUNDATION}
${COREMEDIA}
${COREVIDEO}
2017-06-29 19:01:10 +00:00
${COREMEDIAIO}
2016-02-23 23:16:51 +00:00
${COCOA})
set(mac-avcapture_HEADERS
left-right.hpp
scope-guard.hpp
)
set(mac-avcapture_SOURCES
av-capture.mm)
set_source_files_properties(av-capture.mm
PROPERTIES COMPILE_FLAGS "-fobjc-arc")
2020-10-01 20:15:25 +00:00
2016-02-23 23:16:51 +00:00
add_library(mac-avcapture MODULE
${mac-avcapture_SOURCES}
${mac-avcapture_HEADERS})
target_link_libraries(mac-avcapture
libobs
${AVFOUNDATION}
${COCOA}
${COREFOUNDATION}
${COREMEDIA}
${COREVIDEO}
2017-06-29 19:01:10 +00:00
${COREMEDIAIO}
2016-02-23 23:16:51 +00:00
${COCOA})
2020-10-01 20:15:25 +00:00
set_target_properties(mac-avcapture PROPERTIES FOLDER "plugins")
2016-02-23 23:16:51 +00:00
install_obs_plugin_with_data(mac-avcapture data)