blob: f21e51c706bb1e1c88faf8ea9533887726560d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
glib2_genmarshal(gstqtvideosinkmarshal
VOID:POINTER,FLOAT,FLOAT,FLOAT,FLOAT
VOID:POINTER,DOUBLE,DOUBLE,DOUBLE,DOUBLE
)
set(GstQtVideoSink_SRCS
bufferformat.cpp
genericsurfacepainter.cpp
gstqtvideosinkbase.cpp
gstqtvideosink.cpp
gstqwidgetvideosink.cpp
gstqtvideosinkplugin.cpp
qtvideosinkdelegate.cpp
${CMAKE_CURRENT_BINARY_DIR}/gstqtvideosinkmarshal.c
)
if (QT_QTOPENGL_FOUND AND OPENGL_FOUND)
set(GstQtVideoSink_SRCS ${GstQtVideoSink_SRCS} openglsurfacepainter.cpp)
set(GstQtVideoSink_GL_LIBS ${OPENGL_gl_LIBRARY} ${QT_QTOPENGL_LIBRARY})
include_directories(${OPENGL_INCLUDE_DIR} ${QT_QTOPENGL_INCLUDE_DIR})
else()
add_definitions(-DGST_QT_VIDEO_SINK_NO_OPENGL)
endif()
automoc4_add_library(gstqtvideosink MODULE ${GstQtVideoSink_SRCS})
target_link_libraries(gstqtvideosink
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${GOBJECT_LIBRARIES}
${GSTREAMER_LIBRARY}
${GSTREAMER_BASE_LIBRARY}
${GSTREAMER_VIDEO_LIBRARY}
${GstQtVideoSink_GL_LIBS}
)
install(TARGETS gstqtvideosink DESTINATION ${PLUGINS_INSTALL_DIR})
|