make bmc dump creation a utility function

Other parts of the code have a need for this function so put it in utils

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I223d9142e7d6ffe12ec3d59d42e848c2c859e3ce
diff --git a/meson.build b/meson.build
index 87fd97b..7ea0f28 100644
--- a/meson.build
+++ b/meson.build
@@ -206,8 +206,10 @@
             'systemd_target_monitor.cpp',
             'systemd_target_parser.cpp',
             'systemd_target_signal.cpp',
+            'utils.cpp',
             dependencies: [
                 CLI11,
+                libgpiod,
                 nlohmann_json,
                 phosphorlogging,
                 sdbusplus,
@@ -289,8 +291,10 @@
       executable('test_systemd_signal',
           './test/systemd_signal.cpp',
           'systemd_target_signal.cpp',
+          'utils.cpp',
           dependencies: [
               gtest,
+              libgpiod,
               nlohmann_json,
               phosphorlogging,
               sdbusplus,