This function returns the path to the cmake executable.
get_cmake(path = NULL)path to cmake executable.
text string (optional), path where to search
cmake (e.g. /path/to/dir on Unix system). Default value
is NULL and the function searches for cmake in the
standard PATH (on unix system).
Ghislain Durif
If no path is supplied, the function searches for the
cmake command in the standard PATH (on Unix system).
If a path is supplied (e.g. /path/to/dir on Unix
system), the function search for the cmake command
in this path.
Note: for the moment, this does not work on Windows OS.