From: Bastian Dehn Date: Sat, 25 Jan 2025 19:18:08 +0000 (+0100) Subject: add netpbm library X-Git-Tag: v1.0.29^2~3^2~35 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=b9d738a8dfe5c932638128f1148aa32665d5eefa;p=sane-kds-s2000w-net.git add netpbm library --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7b5c2fc..e65261a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -46,6 +46,9 @@ IF(NOT WITHOUT_IMAGEMAGICK) LIST(APPEND ImageMagick_INCLUDE_DIRS "/usr/include/x86_64-linux-gnu/ImageMagick-7") ENDIF() MESSAGE(STATUS "ImageMagick_INCLUDE_DIRS: " ${ImageMagick_INCLUDE_DIRS}) +ELSE() + FIND_LIBRARY(netpbm NAMES netpbm REQUIRED) + MESSAGE(STATUS "find netpbm: " ${netpbm}) ENDIF() IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) @@ -97,6 +100,9 @@ IF(NOT WITHOUT_IMAGEMAGICK) ${ImageMagick_INCLUDE_DIRS}) TARGET_LINK_LIBRARIES("sane-kds_s2000w_net" ${ImageMagick_LIBRARIES}) +ELSE() + TARGET_LINK_LIBRARIES("sane-kds_s2000w_net" + ${netpbm}) ENDIF() ADD_LIBRARY("sane-kds_s2000w_net-static" @@ -120,6 +126,9 @@ IF(NOT WITHOUT_IMAGEMAGICK) ${ImageMagick_INCLUDE_DIRS}) TARGET_LINK_LIBRARIES("sane-kds_s2000w_net-static" ${ImageMagick_LIBRARIES}) +ELSE() + TARGET_LINK_LIBRARIES("sane-kds_s2000w_net-static" + ${netpbm}) ENDIF() INSTALL(TARGETS "sane-kds_s2000w_net" "sane-kds_s2000w_net-static"