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)
|
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}
|
|
|
|
${COCOA})
|
2014-04-28 14:58:08 -07:00
|
|
|
|
|
|
|
set(mac-avcapture_HEADERS
|
2014-05-12 15:14:27 -07:00
|
|
|
AVCaptureInputPort+PreMavericksCompat.h)
|
2014-04-28 14:58:08 -07:00
|
|
|
|
|
|
|
set(mac-avcapture_SOURCES
|
|
|
|
av-capture.m
|
|
|
|
plugin-main.c)
|
|
|
|
|
|
|
|
set_source_files_properties(av-capture.m
|
|
|
|
PROPERTIES LANGUAGE C)
|
|
|
|
|
|
|
|
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}
|
|
|
|
${COCOA})
|
2014-04-28 14:58:08 -07:00
|
|
|
|
|
|
|
install_obs_plugin(mac-avcapture)
|
2014-05-05 10:52:58 -07:00
|
|
|
|