CMakeLists.txt 601 Bytes
Newer Older
1 2
set(EXTRA_LIBRARIES)

3
if (GST_FOUND)
4 5
	set(EXTRA_LIBRARIES ${GST_LIBRARIES})
endif()
6

7
add_library(VideoStreaming
8 9
    GLVideoItemStub.cc
    GLVideoItemStub.h
10 11
    gstqgc.c
    gstqgcvideosinkbin.c
12 13 14 15 16 17
    SubtitleWriter.cc
    SubtitleWriter.h
    VideoReceiver.cc
    VideoReceiver.h
    VideoStreaming.cc
    VideoStreaming.h
18 19
    VideoManager.cc
    VideoManager.h
20
)
21

22
target_link_libraries(VideoStreaming
23 24
        PRIVATE
                gst_plugins_good
25 26 27 28 29 30
	PUBLIC
		qgc
		Qt5::Multimedia
		Qt5::OpenGL
		${EXTRA_LIBRARIES}
)
31

32
target_include_directories(VideoStreaming INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})