From 8d6e91838ac0c267fe4d6090a25005fcedebf35a Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Fri, 24 Jul 2009 10:33:47 +0200 Subject: [PATCH] [364/906] make the cmake build work on MacOSX We can now generate a Xcode project (or Unix Makfiles), see INSTALL file --- gst-libs/gst/gl/CMakeLists.txt | 55 +++++++++++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 14 deletions(-) mode change 100644 => 100755 gst-libs/gst/gl/CMakeLists.txt diff --git a/gst-libs/gst/gl/CMakeLists.txt b/gst-libs/gst/gl/CMakeLists.txt old mode 100644 new mode 100755 index 4e05d1f..3b6b21c --- a/gst-libs/gst/gl/CMakeLists.txt +++ b/gst-libs/gst/gl/CMakeLists.txt @@ -35,19 +35,46 @@ target_link_libraries(gstgl else (WIN32) -include_directories(AFTER - ../../..) + if (APPLE) + + 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") -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}) + 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) + endif (WIN32) -- 2.7.4