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.
|
|
|
|
*/
|
2012-08-13 21:42:58 +04:00
|
|
|
virtual cmCommand* Clone()
|
2001-02-27 01:13:30 +03:00
|
|
|
{
|
|
|
|
return new cmFindFileCommand;
|
|
|
|
}
|
2012-02-25 10:49:24 +04:00
|
|
|
virtual const char* 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
|