From 1362bb41c82f58f7ea8049d396d25584fb72d8f9 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Mon, 4 Feb 2002 18:41:47 -0500 Subject: [PATCH] Add module to find gnuplot --- Modules/Documentation.cmake | 1 + Modules/FindGnuplot.cmake | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Modules/FindGnuplot.cmake diff --git a/Modules/Documentation.cmake b/Modules/Documentation.cmake index f090aebe3..e63fae5be 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 000000000..943c8a418 --- /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 +)