Update OSX dependencies for cmake generators other than ninja/make

This commit is contained in:
Palana 2014-05-08 14:31:43 +02:00
parent b9c544969e
commit cfc3f2590e
2 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,8 @@ elseif(APPLE)
set(libobs-opengl_PLATFORM_DEPS
${COCOA}
${IOSURF})
${IOSURF}
${OPENGL_gl_LIBRARY})
else()
set(libobs-opengl_PLATFORM_SOURCES
gl-x11.c)

View File

@ -1,12 +1,14 @@
project(mac-avcapture)
find_library(AVFOUNDATION AVFoundation)
find_library(COCOA Cocoa)
find_library(COREFOUNDATION CoreFoundation)
find_library(COREMEDIA CoreMedia)
find_library(COREVIDEO CoreVideo)
include_directories(${AVFOUNDATION}
${COCOA}
${COREFOUNDATION}
${COREMEDIA}
${COREVIDEO})
@ -28,6 +30,7 @@ add_library(mac-avcapture MODULE
target_link_libraries(mac-avcapture
libobs
${AVFOUNDATION}
${COCOA}
${COREFOUNDATION}
${COREMEDIA}
${COREVIDEO})