From 12c5f4430c055b75f9b90eaf57830da3c712b805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 7 Jan 2021 18:42:14 +0100 Subject: [PATCH] Add an option to install the imagetops binary. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This binary may already be included in the system - for example in the netpbm package. Signed-off-by: Slávek Banko (cherry picked from commit f6aced3def110bab4ebd10e4b4684c52d29fc767) --- CMakeLists.txt | 1 + kdeprint/filters/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 882414e72..4a113dc35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,7 @@ OPTION( WITH_LIBART "Enable libart support (for SVG icons)" ${WITH_ALL_OPTIONS} OPTION( WITH_LIBIDN "Enable support for libidn" ${WITH_ALL_OPTIONS} ) OPTION( WITH_SSL "Enable support for SSL" ON ) OPTION( WITH_CUPS "Enable CUPS support" ON ) +OPTION( WITH_IMAGETOPS_BINARY "Enable installation of imagetops binary" ${WITH_ALL_OPTIONS} ) OPTION( WITH_LUA "Enable LUA support" ${WITH_ALL_OPTIONS} ) OPTION( WITH_TIFF "Enable tiff support" ${WITH_ALL_OPTIONS} ) OPTION( WITH_JASPER "Enable jasper (jpeg2k) support" ${WITH_ALL_OPTIONS} ) diff --git a/kdeprint/filters/CMakeLists.txt b/kdeprint/filters/CMakeLists.txt index a19bb1f93..731308d84 100644 --- a/kdeprint/filters/CMakeLists.txt +++ b/kdeprint/filters/CMakeLists.txt @@ -20,4 +20,6 @@ install( FILES pdf2ps.xml poster.desktop poster.xml DESTINATION ${DATA_INSTALL_DIR}/kdeprint/filters ) -install( PROGRAMS imagetops DESTINATION ${BIN_INSTALL_DIR} ) +if( WITH_IMAGETOPS_BINARY ) + install( PROGRAMS imagetops DESTINATION ${BIN_INSTALL_DIR} ) +endif()