2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2001-02-27 01:13:30 +03:00
|
|
|
#ifndef cmFindFileCommand_h
|
|
|
|
#define cmFindFileCommand_h
|
|
|
|
|
2006-03-02 21:30:22 +03:00
|
|
|
#include "cmFindPathCommand.h"
|
2001-02-27 01:13:30 +03:00
|
|
|
|
|
|
|
/** \class cmFindFileCommand
|
|
|
|
* \brief Define a command to search for an executable program.
|
|
|
|
*
|
|
|
|
* cmFindFileCommand is used to define a CMake variable
|
2012-08-13 21:42:58 +04:00
|
|
|
* that specifies an executable program. The command searches
|
2001-02-27 01:13:30 +03:00
|
|
|
* in the current path (e.g., PATH environment variable) for
|
|
|
|
* an executable that matches one of the supplied names.
|
|
|
|
*/
|
2006-03-02 21:30:22 +03:00
|
|
|
class cmFindFileCommand : public cmFindPathCommand
|
2001-02-27 01:13:30 +03:00
|
|
|
{
|
|
|
|
public:
|
2006-03-02 21:30:22 +03:00
|
|
|
cmFindFileCommand();
|
2001-02-27 01:13:30 +03:00
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
cmCommand* Clone() CM_OVERRIDE { return new cmFindFileCommand; }
|
|
|
|
std::string GetName() const CM_OVERRIDE { return "find_file"; }
|
2001-02-27 01:13:30 +03:00
|
|
|
|
2006-03-02 21:30:22 +03:00
|
|
|
cmTypeMacro(cmFindFileCommand, cmFindPathCommand);
|
2001-02-27 01:13:30 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|