2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2001-02-27 01:13:30 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2001-02-27 01:13:30 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
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-05-16 17:34:04 +03:00
|
|
|
virtual cmCommand* Clone() { return new cmFindFileCommand; }
|
|
|
|
virtual std::string GetName() const { 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
|