]> Creatis software - gdcm.git/blobdiff - CMake/FindRsync.cmake
ENH: Adding a find rsync cmake module
[gdcm.git] / CMake / FindRsync.cmake
diff --git a/CMake/FindRsync.cmake b/CMake/FindRsync.cmake
new file mode 100644 (file)
index 0000000..c5cc694
--- /dev/null
@@ -0,0 +1,16 @@
+#
+# This module finds if rsync is installed
+#
+#  RSYNC_EXECUTABLE         = full path to the pike binary
+#
+
+FIND_PROGRAM(RSYNC_EXECUTABLE
+  NAMES rsync
+  PATHS
+  /usr/bin
+  /usr/local/bin
+  )
+
+MARK_AS_ADVANCED(
+  RSYNC_EXECUTABLE
+  )