Make Borealis GUI more generic to build (#408)

This commit is contained in:
Florian Märkl 2020-12-23 17:36:17 +01:00 committed by GitHub
commit 4da09f75f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 168 additions and 167 deletions

View file

@ -42,6 +42,11 @@ function(join OUTPUT GLUE)
endfunction()
function (_ffmpeg_find component headername)
if(TARGET "FFMPEG::${component}")
# already found before
return()
endif()
# Try pkg-config first
if(PKG_CONFIG_FOUND)
pkg_check_modules(FFMPEG_${component} lib${component} IMPORTED_TARGET)