Commit e0bf9527 authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Daniel Agar

Correctly enable Video if build with CMake

parent 343eecde
......@@ -10,7 +10,6 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# CMake build type
# Debug Release RelWithDebInfo MinSizeRel Coverage
if (NOT CMAKE_BUILD_TYPE)
......@@ -67,7 +66,14 @@ pkg_check_modules(GST
gstreamer-1.0>=1.14
gstreamer-video-1.0>=1.14
)
if (GST_FOUND)
include_directories(
${GST_INCLUDE_DIRS}
)
add_definitions(
-DQGC_GST_STREAMING
)
endif()
#=============================================================================
# Qt5
#
......
......@@ -2,7 +2,6 @@
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${Qt5Location_PRIVATE_INCLUDE_DIRS}
)
......
if (GST_FOUND)
include_directories(
${GST_INCLUDE_DIRS}
gstqtvideosink/utils/
)
......
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