set(src
  ne_cpu.c
  ne_meminfo.c
  ne_diskstats.c
  ne_filesystem.c
  ne_uname.c
  ne_stat.c
  ne_vmstat.c
  ne_netdev.c
  ne_netstat.c
  ne_sockstat.c
  ne_time.c
  ne_timex.c
  ne_loadavg.c
  ne_filefd.c
  ne_textfile.c
  ne_processes.c
  ne_nvme.c
  ne_hwmon.c
  ne_utils.c
  ne_config.c
  ne_systemd.c
  ne_thermalzone.c
  ne_powersupply.c
  ne.c
  )

set(extra_libs)
if(JOURNALD_FOUND AND FLB_HAVE_SYSTEMD_SDBUS)
  list(APPEND extra_libs ${JOURNALD_LIBRARIES})
endif()

FLB_PLUGIN(in_node_exporter_metrics "${src}" "${extra_libs}")
