From 57b3b74bcddf356fd9e8e301cd60d25801fe8f0d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 21 Sep 2023 19:09:26 -0400 Subject: [PATCH] link gui to jpeg and png libs --- tools/lammps-gui/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/lammps-gui/CMakeLists.txt b/tools/lammps-gui/CMakeLists.txt index 305e9872d2..47406fd4cb 100644 --- a/tools/lammps-gui/CMakeLists.txt +++ b/tools/lammps-gui/CMakeLists.txt @@ -132,6 +132,12 @@ if(BUILD_OMP) find_package(OpenMP COMPONENTS CXX REQUIRED) target_link_libraries(lammps-gui PRIVATE OpenMP::OpenMP_CXX) endif() +if(WITH_JPEG) + target_link_libraries(lammps-gui PRIVATE JPEG::JPEG) +endif() +if(WITH_PNG) + target_link_libraries(lammps-gui PRIVATE PNG::PNG ZLIB::ZLIB) +endif() # when compiling on macOS, create an "app bundle" if(APPLE)