FindGnuplot.cmake 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # - this module looks for gnuplot
  2. #
  3. # Once done this will define
  4. #
  5. # GNUPLOT_FOUND - system has Gnuplot
  6. # GNUPLOT_EXECUTABLE - the Gnuplot executable
  7. #=============================================================================
  8. # Copyright 2002-2009 Kitware, Inc.
  9. #
  10. # Distributed under the OSI-approved BSD License (the "License");
  11. # see accompanying file Copyright.txt for details.
  12. #
  13. # This software is distributed WITHOUT ANY WARRANTY; without even the
  14. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. # See the License for more information.
  16. #=============================================================================
  17. # (To distribute this file outside of CMake, substitute the full
  18. # License text for the above reference.)
  19. INCLUDE(FindCygwin)
  20. FIND_PROGRAM(GNUPLOT_EXECUTABLE
  21. NAMES
  22. gnuplot
  23. pgnuplot
  24. wgnupl32
  25. PATHS
  26. ${CYGWIN_INSTALL_PATH}/bin
  27. )
  28. # for compatibility
  29. SET(GNUPLOT ${GNUPLOT_EXECUTABLE})
  30. # handle the QUIETLY and REQUIRED arguments and set GNUPLOT_FOUND to TRUE if
  31. # all listed variables are TRUE
  32. INCLUDE(FindPackageHandleStandardArgs)
  33. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gnuplot DEFAULT_MSG GNUPLOT_EXECUTABLE)
  34. MARK_AS_ADVANCED( GNUPLOT_EXECUTABLE )