CMakeLists.txt 1.23 KB
Newer Older
1 2
set(EXTRA_LIBRARIES)

3
if (GST_FOUND)
4 5 6
	include_directories(
		gstqtvideosink/utils/
	)
7

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
	set(EXTRA_SRC
		gstqtvideosink/delegates/basedelegate.cpp
		gstqtvideosink/delegates/qtquick2videosinkdelegate.cpp
		gstqtvideosink/delegates/qtvideosinkdelegate.cpp
		gstqtvideosink/delegates/qwidgetvideosinkdelegate.cpp
		gstqtvideosink/gstqtglvideosink.cpp
		gstqtvideosink/gstqtglvideosinkbase.cpp
		gstqtvideosink/gstqtquick2videosink.cpp
		gstqtvideosink/gstqtvideosink.cpp
		gstqtvideosink/gstqtvideosinkbase.cpp
		gstqtvideosink/gstqtvideosinkplugin.cpp
		gstqtvideosink/gstqwidgetvideosink.cpp
		gstqtvideosink/gstqtvideosinkmarshal.c
		gstqtvideosink/painters/genericsurfacepainter.cpp
		gstqtvideosink/painters/openglsurfacepainter.cpp
		gstqtvideosink/painters/videomaterial.cpp
		gstqtvideosink/painters/videonode.cpp
		gstqtvideosink/utils/bufferformat.cpp
		gstqtvideosink/utils/utils.cpp
	)
	set(EXTRA_LIBRARIES ${GST_LIBRARIES})
endif()
30

31 32 33 34 35 36 37 38
add_library(VideoStreaming
	VideoItem.cc
	VideoReceiver.cc
	VideoStreaming.cc
	VideoSurface.cc
	SubtitleWriter.cc
	${EXTRA_SRC}
)
39

40 41 42 43 44 45 46
target_link_libraries(VideoStreaming
	PUBLIC
		qgc
		Qt5::Multimedia
		Qt5::OpenGL
		${EXTRA_LIBRARIES}
)
47

48
target_include_directories(VideoStreaming INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})