Commit 4077fc18 authored by Daniel Agar's avatar Daniel Agar

cmake create VideoStreaming library in src/VideoStreaming

parent bff39b26
......@@ -16,7 +16,6 @@ include_directories(
Terrain
uas
Vehicle
VideoStreaming
ViewWidgets
)
......@@ -107,45 +106,12 @@ if(BUILD_TESTING)
endif()
if (VIDEO)
list(APPEND QGC_SRC
VideoStreaming/gstqtvideosink/delegates/basedelegate.cpp
VideoStreaming/gstqtvideosink/delegates/qtquick2videosinkdelegate.cpp
VideoStreaming/gstqtvideosink/delegates/qtvideosinkdelegate.cpp
VideoStreaming/gstqtvideosink/delegates/qwidgetvideosinkdelegate.cpp
VideoStreaming/gstqtvideosink/gstqtglvideosink.cpp
VideoStreaming/gstqtvideosink/gstqtglvideosinkbase.cpp
VideoStreaming/gstqtvideosink/gstqtquick2videosink.cpp
VideoStreaming/gstqtvideosink/gstqtvideosink.cpp
VideoStreaming/gstqtvideosink/gstqtvideosinkbase.cpp
VideoStreaming/gstqtvideosink/gstqtvideosinkplugin.cpp
VideoStreaming/gstqtvideosink/gstqwidgetvideosink.cpp
VideoStreaming/gstqtvideosink/painters/genericsurfacepainter.cpp
VideoStreaming/gstqtvideosink/painters/openglsurfacepainter.cpp
VideoStreaming/gstqtvideosink/painters/videomaterial.cpp
VideoStreaming/gstqtvideosink/painters/videonode.cpp
VideoStreaming/gstqtvideosink/utils/bufferformat.cpp
VideoStreaming/gstqtvideosink/utils/utils.cpp
)
endif()
set(QGC_RESOURCES)
list(APPEND QGC_RESOURCES
)
if(BUILD_TESTING)
list(APPEND QGC_RESOURCES
UnitTest.qrc
)
endif()
set(QGC_UI)
list(APPEND QGC_UI
QGCQmlWidgetHolder.ui
)
add_library(qgc
${QGC_RESOURCES}
......@@ -182,11 +148,6 @@ add_library(qgc
Vehicle/MultiVehicleManager.cc
Vehicle/Vehicle.cc
VideoStreaming/VideoItem.cc
VideoStreaming/VideoReceiver.cc
VideoStreaming/VideoStreaming.cc
VideoStreaming/VideoSurface.cc
ViewWidgets/CustomCommandWidget.cc
ViewWidgets/CustomCommandWidgetController.cc
ViewWidgets/ViewWidgetController.cc
......@@ -220,6 +181,9 @@ add_library(qgc
uas/UAS.h
uas/UASInterface.h
# UI
QGCQmlWidgetHolder.ui
)
set_source_files_properties(QGCApplication.cc PROPERTIES COMPILE_DEFINITIONS GIT_VERSION="${git_tag}")
......@@ -240,7 +204,7 @@ add_subdirectory(QmlControls)
add_subdirectory(QtLocationPlugin)
add_subdirectory(Settings)
add_subdirectory(VehicleSetup)
add_subdirectory(VideoStreaming)
target_link_libraries(qgc
......@@ -277,6 +241,7 @@ target_link_libraries(qgc
Settings
ui
VehicleSetup
VideoStreaming
)
target_include_directories(qgc INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
......
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
)
target_include_directories(VideoStreaming PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment