2014-04-28 14:58:08 -07:00
|
|
|
project(mac-avcapture)
|
|
|
|
|
|
|
|
find_library(AVFOUNDATION AVFoundation)
|
2014-05-08 05:31:43 -07:00
|
|
|
find_library(COCOA Cocoa)
|
2014-04-28 14:58:08 -07:00
|
|
|
find_library(COREFOUNDATION CoreFoundation)
|
|
|
|
find_library(COREMEDIA CoreMedia)
|
|
|
|
find_library(COREVIDEO CoreVideo)
|
2014-05-05 10:52:58 -07:00
|
|
|
find_library(COCOA Cocoa)
|
2017-03-28 19:21:46 -07:00
|
|
|
find_library(COREMEDIAIO CoreMediaIO)
|
2014-04-28 14:58:08 -07:00
|
|
|
|
|
|
|
include_directories(${AVFOUNDATION}
|
2014-05-08 05:31:43 -07:00
|
|
|
${COCOA}
|
2014-04-28 14:58:08 -07:00
|
|
|
${COREFOUNDATION}
|
|
|
|
${COREMEDIA}
|
2014-05-05 10:52:58 -07:00
|
|
|
${COREVIDEO}
|
2017-03-28 19:21:46 -07:00
|
|
|
${COREMEDIAIO}
|
2014-05-05 10:52:58 -07:00
|
|
|
${COCOA})
|
2014-04-28 14:58:08 -07:00
|
|
|
|
|
|
|
set(mac-avcapture_HEADERS
|
2015-10-24 01:38:42 -07:00
|
|
|
left-right.hpp
|
2015-08-18 11:00:55 -07:00
|
|
|
scope-guard.hpp
|
2015-08-11 06:49:10 -07:00
|
|
|
)
|
2014-04-28 14:58:08 -07:00
|
|
|
|
|
|
|
set(mac-avcapture_SOURCES
|
2015-08-11 11:12:37 -07:00
|
|
|
av-capture.mm)
|
2014-04-28 14:58:08 -07:00
|
|
|
|
2015-08-11 11:12:37 -07:00
|
|
|
set_source_files_properties(av-capture.mm
|
|
|
|
PROPERTIES COMPILE_FLAGS "-fobjc-arc")
|
2014-04-28 14:58:08 -07:00
|
|
|
|
|
|
|
add_library(mac-avcapture MODULE
|
|
|
|
${mac-avcapture_SOURCES}
|
|
|
|
${mac-avcapture_HEADERS})
|
|
|
|
|
|
|
|
target_link_libraries(mac-avcapture
|
|
|
|
libobs
|
|
|
|
${AVFOUNDATION}
|
2014-05-08 05:31:43 -07:00
|
|
|
${COCOA}
|
2014-04-28 14:58:08 -07:00
|
|
|
${COREFOUNDATION}
|
|
|
|
${COREMEDIA}
|
2014-05-05 10:52:58 -07:00
|
|
|
${COREVIDEO}
|
2017-03-28 19:21:46 -07:00
|
|
|
${COREMEDIAIO}
|
2014-05-05 10:52:58 -07:00
|
|
|
${COCOA})
|
2014-04-28 14:58:08 -07:00
|
|
|
|
2014-08-19 05:24:59 -07:00
|
|
|
install_obs_plugin_with_data(mac-avcapture data)
|