From: IOhannes m zmölnig Date: Sat, 20 Aug 2022 06:54:15 +0000 (+0200) Subject: link against system libpng/libjpeg X-Git-Tag: archive/raspbian/0.22.0-1+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4ff1680ffbc276671cdd0dac75a31ae68b1a3350;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 10aa3bf..8e76388 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -410,6 +410,9 @@ list(APPEND LIBRARIES fmt::fmt) #add_subdirectory(src/deps/json) #list(APPEND LIBRARIES nlohmann_json::nlohmann_json) +pkg_check_modules(JpegPng IMPORTED_TARGET libjpeg libpng) +list(APPEND LIBRARIES PkgConfig::JpegPng) + # Catch (if tests enabled) if (WITH_TESTS)