FindGnuplot

Finds the Gnuplot command-line graphing utility for generating two- and three-dimensional plots (gnuplot):

find_package(Gnuplot [<version>] [...])

結果變數

該模組定義了以下變數:

Gnuplot_FOUND

在 3.3 版被加入.

Boolean indicating whether (the requested version of) Gnuplot was found.

Gnuplot_VERSION

在 4.2 版被加入.

The version of Gnuplot found.

備註

Version detection is available only for Gnuplot 4 and later. Earlier versions did not provide version output.

快取變數

The following cache variables may also be set:

GNUPLOT_EXECUTABLE

Absolute path to the gnuplot executable.

已棄用的變數

The following variables are provided for backward compatibility:

GNUPLOT_FOUND

在 4.2 版之後被棄用: Use Gnuplot_FOUND, which has the same value.

Boolean indicating whether (the requested version of) Gnuplot was found.

GNUPLOT_VERSION_STRING

在 4.2 版之後被棄用: Superseded by the Gnuplot_VERSION.

The version of Gnuplot found.

範例

Finding Gnuplot and executing it in a process:

find_package(Gnuplot)
if(Gnuplot_FOUND)
  execute_process(COMMAND ${GNUPLOT_EXECUTABLE} --help)
endif()