CMakeLists.txt 1.05 KB
Newer Older
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

set(EXTRA_SRC)
if(VIDEO)
	list(APPEND 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/painters/genericsurfacepainter.cpp
		gstqtvideosink/painters/openglsurfacepainter.cpp
		gstqtvideosink/painters/videomaterial.cpp
		gstqtvideosink/painters/videonode.cpp
		gstqtvideosink/utils/bufferformat.cpp
		gstqtvideosink/utils/utils.cpp
	)
endif()

add_library(VideoStreaming
	VideoItem.cc
	VideoReceiver.cc
	VideoStreaming.cc
	VideoSurface.cc
	${EXTRA_SRC}
)

target_link_libraries(VideoStreaming
	PUBLIC
		qgc

37 38
		Qt5::Multimedia
)
39

40
target_include_directories(VideoStreaming INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})