From: IOhannes m zmölnig Date: Wed, 2 Feb 2022 18:08:36 +0000 (+0100) Subject: link against system libpng/libjpeg X-Git-Tag: archive/raspbian/0.20.1+ds1-1+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc48994bc33bd1089f9a945c0337b3bfa37ccc0a;p=giada.git link against system libpng/libjpeg Forwarded: not-needed Last-Update: 2021-12-20 Last-Update: 2021-12-20 Gbp-Pq: Name 06-system-jpg+png.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fe5a52e..a066d32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -387,6 +387,9 @@ else() message("Libsamplerate library found in " ${LIBRARY_SAMPLERATE}) endif() +pkg_check_modules(JpegPng IMPORTED_TARGET libjpeg libpng) +list(APPEND LIBRARIES PkgConfig::JpegPng) + # Catch (if tests enabled) if (WITH_TESTS)