Initial Commit
diff --git a/example/Makefile.am b/example/Makefile.am
new file mode 100644
index 0000000..3fad73a
--- /dev/null
+++ b/example/Makefile.am
@@ -0,0 +1,11 @@
+AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src \
+ $(SYSTEMD_CFLAGS) $(CODE_COVERAGE_CPPFLAGS)
+AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
+AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
+common_ldadd = $(top_builddir)/src/libsdeventplus.la
+
+noinst_PROGRAMS =
+
+noinst_PROGRAMS += follow
+follow_SOURCES = follow.cpp
+follow_LDADD = $(common_ldadd)
diff --git a/example/follow.cpp b/example/follow.cpp
new file mode 100644
index 0000000..36cd44b
--- /dev/null
+++ b/example/follow.cpp
@@ -0,0 +1,14 @@
+#include <cstdio>
+#include <sdeventplus/event.hpp>
+
+int main(int argc, char* argv[])
+{
+ if (argc != 2)
+ {
+ fprintf(stderr, "Usage: %s [file]\n", argv[0]);
+ return 1;
+ }
+
+ sdeventplus::Event event = sdeventplus::Event::get_default();
+ return event.loop();
+}