Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / FindGnuplot.cmake
blobc12ebb70a867fb1160f918154fc136bd9863eeab
1 # - this module looks for gnuplot
3 # Once done this will define
5 #  GNUPLOT_FOUND - system has Gnuplot
6 #  GNUPLOT_EXECUTABLE - the Gnuplot executable
8 INCLUDE(FindCygwin)
10 FIND_PROGRAM(GNUPLOT_EXECUTABLE
11   NAMES 
12   gnuplot
13   pgnuplot
14   wgnupl32
15   PATHS
16   ${CYGWIN_INSTALL_PATH}/bin
19 # for compatibility
20 SET(GNUPLOT ${GNUPLOT_EXECUTABLE})
22 # handle the QUIETLY and REQUIRED arguments and set GNUPLOT_FOUND to TRUE if 
23 # all listed variables are TRUE
24 INCLUDE(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gnuplot DEFAULT_MSG GNUPLOT_EXECUTABLE)
27 MARK_AS_ADVANCED( GNUPLOT_EXECUTABLE )