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

40 lines
820 B
CMake
Raw Normal View History

project(mac-avcapture)
find_library(AVFOUNDATION AVFoundation)
find_library(COCOA Cocoa)
find_library(COREFOUNDATION CoreFoundation)
find_library(COREMEDIA CoreMedia)
find_library(COREVIDEO CoreVideo)
2014-05-05 10:52:58 -07:00
find_library(COCOA Cocoa)
include_directories(${AVFOUNDATION}
${COCOA}
${COREFOUNDATION}
${COREMEDIA}
2014-05-05 10:52:58 -07:00
${COREVIDEO}
${COCOA})
set(mac-avcapture_HEADERS
2015-08-11 06:49:10 -07:00
)
set(mac-avcapture_SOURCES
2015-08-11 07:15:21 -07:00
av-capture.m)
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}
${COCOA}
${COREFOUNDATION}
${COREMEDIA}
2014-05-05 10:52:58 -07:00
${COREVIDEO}
${COCOA})
install_obs_plugin_with_data(mac-avcapture data)