mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
[364/906] make the cmake build work on MacOSX
We can now generate a Xcode project (or Unix Makfiles), see INSTALL file
This commit is contained in:
parent
54ba5bccf5
commit
8d6e91838a
1 changed files with 41 additions and 14 deletions
53
gst-libs/gst/gl/CMakeLists.txt
Normal file → Executable file
53
gst-libs/gst/gl/CMakeLists.txt
Normal file → Executable file
|
@ -35,19 +35,46 @@ target_link_libraries(gstgl
|
|||
|
||||
else (WIN32)
|
||||
|
||||
include_directories(AFTER
|
||||
../../..)
|
||||
if (APPLE)
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_x11.c
|
||||
gstgldisplay.c
|
||||
gstglbuffer.c
|
||||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
include_directories(AFTER
|
||||
../../..)
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_cocoa.m
|
||||
gstgldisplay.c
|
||||
gstglbuffer.c
|
||||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
general ${GLIB2_LIBRARIES}
|
||||
general ${GSTREAMER_LIBRARIES}
|
||||
"-L/opt/local/lib"
|
||||
"-lintl"
|
||||
"-framework OpenGL"
|
||||
"-framework Cocoa")
|
||||
|
||||
else (APPLE)
|
||||
|
||||
include_directories(AFTER
|
||||
../../..)
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_x11.c
|
||||
gstgldisplay.c
|
||||
gstglbuffer.c
|
||||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
general ${GLIB2_LIBRARIES}
|
||||
general ${GSTREAMER_LIBRARIES})
|
||||
|
||||
endif (APPLE)
|
||||
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
general ${GLIB2_LIBRARIES}
|
||||
general ${GSTREAMER_LIBRARIES})
|
||||
endif (WIN32)
|
||||
|
|
Loading…
Reference in a new issue