summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-02-04 23:41:47 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-02-04 23:41:47 (GMT)
commit1362bb41c82f58f7ea8049d396d25584fb72d8f9 (patch)
treecb0ea540c30282e0e0e49de42403892ba5e80de4 /Modules
parent626251ddf09b5a902c07c4cf2d96b0805595c0de (diff)
downloadCMake-1362bb41c82f58f7ea8049d396d25584fb72d8f9.zip
CMake-1362bb41c82f58f7ea8049d396d25584fb72d8f9.tar.gz
CMake-1362bb41c82f58f7ea8049d396d25584fb72d8f9.tar.bz2
Add module to find gnuplot
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Documentation.cmake1
-rw-r--r--Modules/FindGnuplot.cmake21
2 files changed, 22 insertions, 0 deletions
diff --git a/Modules/Documentation.cmake b/Modules/Documentation.cmake
index f090aeb..e63fae5 100644
--- a/Modules/Documentation.cmake
+++ b/Modules/Documentation.cmake
@@ -16,6 +16,7 @@ IF (BUILD_DOCUMENTATION)
#
INCLUDE(${CMAKE_ROOT}/Modules/FindUnixCommands.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindDoxygen.cmake)
+ INCLUDE(${CMAKE_ROOT}/Modules/FindGnuplot.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindHhc.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindPerl.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindWget.cmake)
diff --git a/Modules/FindGnuplot.cmake b/Modules/FindGnuplot.cmake
new file mode 100644
index 0000000..943c8a4
--- /dev/null
+++ b/Modules/FindGnuplot.cmake
@@ -0,0 +1,21 @@
+#
+# this module looks for gnuplot
+#
+
+INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake)
+
+FIND_PROGRAM(GNUPLOT
+ NAMES
+ gnuplot
+ pgnuplot
+ wgnupl32
+ PATH
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+MARK_AS_ADVANCED(
+ GNUPLOT
+)