gstreamer/gst-libs/gst/gl/CMakeLists.txt

51 lines
886 B
CMake
Raw Normal View History

#FIXME: generate config.h
add_definitions(-DHAVE_CONFIG_H)
include_directories(AFTER
.
2008-11-23 15:14:26 +00:00
${GLEW_INCLUDE_DIR}
${GSTREAMER_INCLUDE_DIR}
${GLIB2_INCLUDE_DIR}
${LIBXML2_INCLUDE_DIR}
${LIBICONV_INCLUDE_DIR})
2008-11-23 15:14:26 +00:00
if (WIN32)
include_directories(AFTER
../../../win32/common)
add_library (gstgl STATIC
gstglwindow_win32.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}
gdi32
winmm)
2008-11-23 15:14:26 +00:00
else (WIN32)
2008-11-23 15:14:26 +00:00
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 (WIN32)