[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 Matthew Waters
parent 89fe233c52
commit 579b74d845
2 changed files with 42 additions and 15 deletions

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

@ -35,19 +35,46 @@ target_link_libraries(gstgl
else (WIN32) 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 else (APPLE)
gstglwindow_x11.c
gstgldisplay.c include_directories(AFTER
gstglbuffer.c ../../..)
gstglfilter.c
gstglshader.c) add_library (gstgl STATIC
gstglwindow_x11.c
target_link_libraries(gstgl gstgldisplay.c
general ${OPENGL_LIBRARIES} gstglbuffer.c
general ${GLEW_LIBRARY} gstglfilter.c
general ${GLIB2_LIBRARIES} gstglshader.c)
general ${GSTREAMER_LIBRARIES})
target_link_libraries(gstgl
general ${OPENGL_LIBRARIES}
general ${GLEW_LIBRARY}
general ${GLIB2_LIBRARIES}
general ${GSTREAMER_LIBRARIES})
endif (APPLE)
endif (WIN32) endif (WIN32)

2
gst/gl/CMakeLists.txt Normal file → Executable file
View file

@ -22,7 +22,7 @@ if (WIN32)
include_directories(AFTER ../../win32/common) include_directories(AFTER ../../win32/common)
endif (WIN32) endif (WIN32)
add_library (gstopengl SHARED add_library (gstopengl MODULE
gstopengl.c gstopengl.c
gstglimagesink.c gstglimagesink.c
gstglupload.c gstglupload.c