diff options
Diffstat (limited to 'cmake/FindGStreamer.cmake')
-rw-r--r-- | cmake/FindGStreamer.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/FindGStreamer.cmake b/cmake/FindGStreamer.cmake index ef9edd485..0624c1a77 100644 --- a/cmake/FindGStreamer.cmake +++ b/cmake/FindGStreamer.cmake @@ -138,3 +138,14 @@ if(GStreamer_FOUND AND NOT TARGET GStreamer::GStreamer) GStreamer::Allocators ) endif() + +if(TARGET PkgConfig::PC_GSTREAMER_GL) + get_target_property(_qt_incs PkgConfig::PC_GSTREAMER_GL INTERFACE_INCLUDE_DIRECTORIES) + set(__qt_fixed_incs) + foreach(path IN LISTS _qt_incs) + if(IS_DIRECTORY "${path}") + list(APPEND __qt_fixed_incs "${path}") + endif() + endforeach() + set_property(TARGET PkgConfig::PC_GSTREAMER_GL PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${__qt_fixed_incs}") +endif() |