1
0

FindGnuplot.cmake 607 B

12345678910111213141516171819202122232425262728
  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. INCLUDE(FindCygwin)
  8. FIND_PROGRAM(GNUPLOT_EXECUTABLE
  9. NAMES
  10. gnuplot
  11. pgnuplot
  12. wgnupl32
  13. PATHS
  14. ${CYGWIN_INSTALL_PATH}/bin
  15. )
  16. # for compatibility
  17. SET(GNUPLOT ${GNUPLOT_EXECUTABLE})
  18. # handle the QUIETLY and REQUIRED arguments and set GNUPLOT_FOUND to TRUE if
  19. # all listed variables are TRUE
  20. INCLUDE(FindPackageHandleStandardArgs)
  21. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gnuplot DEFAULT_MSG GNUPLOT_EXECUTABLE)
  22. MARK_AS_ADVANCED( GNUPLOT_EXECUTABLE )