]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change convert build with lib
authorBastian Dehn <hhaalo@arcor.de>
Fri, 16 Feb 2024 15:44:46 +0000 (16:44 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 16 Feb 2024 15:44:46 +0000 (16:44 +0100)
CMakeLists.txt
tools/CMakeLists.txt

index cf893185e95fb7cc99491a0fed9a1def86fec2e8..e2c20af1d4922f6f484f1b881a18fab7354e1c48 100644 (file)
@@ -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
index 1b2b8694ffc5aca7f8622cb1e69a1d8c08b82dee..208b32394cb042d02b71e1d72be23f91548d8cc2 100644 (file)
@@ -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