[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
55
gst-libs/gst/gl/CMakeLists.txt
Normal file → Executable file
55
gst-libs/gst/gl/CMakeLists.txt
Normal file → Executable 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user