[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:
Julien Isorce 2009-07-24 10:33:47 +02:00 committed by Tim-Philipp Müller
parent 54ba5bccf5
commit 8d6e91838a

55
gst-libs/gst/gl/CMakeLists.txt Normal file → Executable file
View file

@ -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)