5 # Find gnuplot executable. http://www.gnuplot.info
10 # This module defines the following variables:
14 # ``GNUPLOT_EXECUTABLE``
18 include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
19 find_program(GNUPLOT_EXECUTABLE NAMES gnuplot pgnuplot wgnupl32)
20 mark_as_advanced(GNUPLOT_EXECUTABLE)
22 if(EXISTS "${GNUPLOT_EXECUTABLE}")
23 execute_process(COMMAND ${GNUPLOT_EXECUTABLE} --version OUTPUT_VARIABLE GNUPLOT_VERSION)
24 string(REGEX REPLACE "[^0-9]+([^\n ]+).*" "\\1" GNUPLOT_VERSION "${GNUPLOT_VERSION}")
27 find_package_handle_standard_args(Gnuplot