2008-09-11 23:13:50 +00:00
|
|
|
#FIXME: generate config.h
|
2008-09-11 00:07:12 +00:00
|
|
|
add_definitions(-DHAVE_CONFIG_H)
|
|
|
|
|
|
|
|
include_directories(AFTER
|
|
|
|
../../../win32/common
|
|
|
|
${GLEW_INCLUDE_DIR}
|
|
|
|
../freeglut
|
|
|
|
${GSTREAMER_INCLUDE_DIR}
|
|
|
|
${GLIB2_INCLUDE_DIR}
|
|
|
|
${LIBXML2_INCLUDE_DIR}
|
|
|
|
${LIBICONV_INCLUDE_DIR})
|
|
|
|
|
|
|
|
add_library (gstgl STATIC
|
|
|
|
gstgldisplay.c
|
|
|
|
gstglbuffer.c
|
|
|
|
gstglfilter.c
|
|
|
|
gstglshader.c)
|
2008-09-11 23:13:50 +00:00
|
|
|
|
2008-10-22 23:40:52 +00:00
|
|
|
#FIXME: get ride of this condition
|
|
|
|
if (WIN32)
|
2008-09-11 00:07:12 +00:00
|
|
|
target_link_libraries(gstgl
|
2008-10-22 23:40:52 +00:00
|
|
|
general ${OPENGL_LIBRARIES}
|
|
|
|
general ${GLEW_LIBRARY}
|
|
|
|
general ${GLIB2_LIBRARIES}
|
|
|
|
general ${GSTREAMER_LIBRARIES}
|
|
|
|
gdi32
|
|
|
|
winmm)
|
|
|
|
else (WIN32)
|
|
|
|
target_link_libraries(gstgl
|
|
|
|
general ${OPENGL_LIBRARIES}
|
2008-09-11 00:07:12 +00:00
|
|
|
general ${GLEW_LIBRARY}
|
|
|
|
general ${GLIB2_LIBRARIES}
|
|
|
|
general ${GSTREAMER_LIBRARIES})
|
2008-10-22 23:40:52 +00:00
|
|
|
endif (WIN32)
|