link against system libpng/libjpeg
authorIOhannes m zmölnig <umlaeute@debian.org>
Sat, 20 Aug 2022 06:54:15 +0000 (08:54 +0200)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Sat, 20 Aug 2022 06:54:15 +0000 (08:54 +0200)
Forwarded: not-needed
Last-Update: 2021-12-20

Last-Update: 2021-12-20
Gbp-Pq: Name 06-system-jpg+png.patch

CMakeLists.txt

index 10aa3bf86dba6969dfd5e066459635b7c770335f..8e7638859a647935fcfa0a9fc00815aa1d47df03 100644 (file)
@@ -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)