From: IOhannes m zmölnig Date: Wed, 11 Jan 2023 21:47:49 +0000 (+0100) Subject: link against system libpng/libjpeg X-Git-Tag: archive/raspbian/0.22.0-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8427469931fbb13619ae4d2e3efe880519a3b11f;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)