From 7277934a3f2320a528044fd508f088076d64cdab Mon Sep 17 00:00:00 2001
From: Chuck Atkins <chuck.atkins@kitware.com>
Date: Tue, 28 Mar 2017 17:04:14 -0400
Subject: [PATCH] Add a few working examples

---
 examples/CMakeLists.txt                |  1 +
 examples/hello/CMakeLists.txt          | 10 ++++++++++
 examples/hello/bpWriter/CMakeLists.txt |  5 +++++
 examples/hello/timeBP/CMakeLists.txt   |  5 +++++
 scripts/travis/run-format.sh           |  1 +
 5 files changed, 22 insertions(+)
 create mode 100644 examples/hello/CMakeLists.txt
 create mode 100644 examples/hello/bpWriter/CMakeLists.txt
 create mode 100644 examples/hello/timeBP/CMakeLists.txt

diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index e69de29bb..33bde8ad1 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(hello)
diff --git a/examples/hello/CMakeLists.txt b/examples/hello/CMakeLists.txt
new file mode 100644
index 000000000..de6811d5f
--- /dev/null
+++ b/examples/hello/CMakeLists.txt
@@ -0,0 +1,10 @@
+add_subdirectory(bpWriter)
+add_subdirectory(timeBP)
+
+if(ADIOS_USE_ADIOS1)
+  add_subdirectory(adios1Writer)
+endif()
+
+if(ADIOS_USE_DataMan)
+  add_subdirectory(dataman)
+endif()
diff --git a/examples/hello/bpWriter/CMakeLists.txt b/examples/hello/bpWriter/CMakeLists.txt
new file mode 100644
index 000000000..801a8a1ca
--- /dev/null
+++ b/examples/hello/bpWriter/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_executable(hello_bpWriter helloBPWriter.cpp)
+target_link_libraries(hello_bpWriter adios2)
+
+add_executable(hello_bpWriter_nompi helloBPWriter_nompi.cpp)
+target_link_libraries(hello_bpWriter_nompi adios2)
diff --git a/examples/hello/timeBP/CMakeLists.txt b/examples/hello/timeBP/CMakeLists.txt
new file mode 100644
index 000000000..db8991a5c
--- /dev/null
+++ b/examples/hello/timeBP/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_executable(hello_timeBPWriter timeBPWriter.cpp)
+target_link_libraries(hello_timeBPWriter adios2)
+
+add_executable(hello_timeBPWriter_nompi timeBPWriter_nompi.cpp)
+target_link_libraries(hello_timeBPWriter_nompi adios2)
diff --git a/scripts/travis/run-format.sh b/scripts/travis/run-format.sh
index 7ba599738..51ba5e565 100755
--- a/scripts/travis/run-format.sh
+++ b/scripts/travis/run-format.sh
@@ -14,6 +14,7 @@ fi
 cd ${SOURCE_DIR}
 
 # Check C and C++ code with clang-format
+echo "Checking formatting for commit range: ${COMMIT_RANGE}"
 DIFF="$(./scripts/developer/git/git-clang-format --diff ${COMMIT_RANGE})"
 if [ "${DIFF}" != "no modified files to format" ]
 then
-- 
GitLab