]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add empty config file
authorBastian Dehn <hhaalo@arcor.de>
Sat, 2 Mar 2024 08:52:06 +0000 (09:52 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 2 Mar 2024 08:52:06 +0000 (09:52 +0100)
src/CMakeLists.txt
src/kds_s2000w_config.c [new file with mode: 0644]
src/kds_s2000w_config.h [new file with mode: 0644]
src/kds_s2000w_net.conf [new file with mode: 0644]

index 8d3bd61cedcba5d33dc81661c68af646a1a540a4..97e5b740771a033a0e07517e1e02f1a153e41102 100644 (file)
@@ -3,10 +3,12 @@ cmake_minimum_required(VERSION 3.25.1)
 project("kds_s2000w_net" VERSION "0.0.1")
 
 find_library(SANE NAMES sane REQUIRED)
+find_library(MATH NAMES m REQUIRED)
+find_library(CONFIG NAMES config REQUIRED)
 find_package(CURL REQUIRED)
 find_package(JSON-C REQUIRED)
 find_package(ImageMagick COMPONENTS MagickCore REQUIRED)
-find_library(MATH NAMES m REQUIRED)
+
 
 add_library("sane-kds_s2000w_net"
        SHARED
@@ -16,9 +18,15 @@ add_library("sane-kds_s2000w_net"
        "kds_s2000w_handler_opts.c"
        "kds_s2000w_client.c"
        "kds_s2000w_image_converter.c"
-       "kds_s2000w_debug.c")
+       "kds_s2000w_debug.c"
+       "kds_s2000w_config.c")
 set_target_properties("sane-kds_s2000w_net" PROPERTIES VERSION 1)
-target_link_libraries("sane-kds_s2000w_net" json-c curl MagickCore-6.Q16 m)
+target_link_libraries("sane-kds_s2000w_net"
+       m
+       config
+       json-c
+       curl
+       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_config.c b/src/kds_s2000w_config.c
new file mode 100644 (file)
index 0000000..3e40bb8
--- /dev/null
@@ -0,0 +1,2 @@
+#include <libconfig.h>
+#include "kds_s2000w_config.h"
\ No newline at end of file
diff --git a/src/kds_s2000w_config.h b/src/kds_s2000w_config.h
new file mode 100644 (file)
index 0000000..ddbb5af
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef KDS_S2000W_CONFIG_H
+#define KDS_S2000W_CONFIG_H
+
+#endif
\ No newline at end of file
diff --git a/src/kds_s2000w_net.conf b/src/kds_s2000w_net.conf
new file mode 100644 (file)
index 0000000..e69de29