From e72c682866db1c069c0ff01a10c562e47b4c3935 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Fri, 16 Feb 2024 16:44:46 +0100 Subject: [PATCH] change convert build with lib --- CMakeLists.txt | 1 - tools/CMakeLists.txt | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf89318..e2c20af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,5 +9,4 @@ set(RUN_TESTS OFF CACHE BOOL "build and run tests") if(RUN_TESTS) add_subdirectory(tests) - endif() \ No newline at end of file diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 1b2b869..208b323 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.25.1) find_package(ImageMagick COMPONENTS MagickCore REQUIRED) -add_executable("convert" - "convert.c" - "../src/kds_s2000w_image_converter.c") -target_link_libraries("convert" MagickCore-6.Q16) \ No newline at end of file +add_executable("convert" "convert.c") +add_dependencies("convert" sane-kds_s2000w_net) +target_link_libraries("convert" sane-kds_s2000w_net) \ No newline at end of file -- 2.39.5