]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add files and link with magick core
authorBastian Dehn <hhaalo@arcor.de>
Sun, 4 Feb 2024 17:50:59 +0000 (18:50 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 4 Feb 2024 17:50:59 +0000 (18:50 +0100)
CMakeLists.txt
src/kds_s2000w_image_converter.c [new file with mode: 0644]
src/kds_s2000w_image_converter.h [new file with mode: 0644]
tools/convert.c [new file with mode: 0644]

index 2429d5c4674372c3eaf3ba673d8c89e57f4ce2b5..fcf9c72b6342b6c041bb0d943424c0fc3761f867 100644 (file)
@@ -15,8 +15,12 @@ add_library("sane-kds_s2000w_net"
        "src/kds_s2000w_handler_opts.c"
        "src/kds_s2000w_client.c")
 set_target_properties("sane-kds_s2000w_net" PROPERTIES VERSION 1)
-
 target_link_libraries("sane-kds_s2000w_net" json-c curl)
 
+add_executable("convert"
+       "tools/convert.c"
+       "src/kds_s2000w_image_converter.c")
+target_link_libraries("convert" MagickCore-6.Q16)
+
 install(TARGETS "sane-kds_s2000w_net"
        DESTINATION "/usr/lib/x86_64-linux-gnu/sane")
\ No newline at end of file
diff --git a/src/kds_s2000w_image_converter.c b/src/kds_s2000w_image_converter.c
new file mode 100644 (file)
index 0000000..921c86b
--- /dev/null
@@ -0,0 +1,3 @@
+#include <magick/MagickCore.h>
+
+#include "kds_s2000w_image_converter.h"
diff --git a/src/kds_s2000w_image_converter.h b/src/kds_s2000w_image_converter.h
new file mode 100644 (file)
index 0000000..e042a5f
--- /dev/null
@@ -0,0 +1,3 @@
+#ifndef KDS_S2000W_IMAGE_CONVERTER_H
+void kds_s2000w_convert_jpg_to_pnm();
+#endif
\ No newline at end of file
diff --git a/tools/convert.c b/tools/convert.c
new file mode 100644 (file)
index 0000000..22e1360
--- /dev/null
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include "../src/kds_s2000w_image_converter.h"
+
+int main(int argc, char* argv[])
+{
+       printf("Hello Converter\n");
+
+       return 0;
+}
\ No newline at end of file