CMake/Source/cmFindFileCommand.h

52 lines
1.5 KiB
C
Raw Normal View History

2009-10-02 01:21: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-10-02 01:21: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-10-02 01:21: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
* that specifies an executable program. The command searches
* 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.
*/
virtual cmCommand* Clone()
{
return new cmFindFileCommand;
}
virtual const char* GetName() { return "find_file";}
2001-02-27 01:13:30 +03:00
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
return "Find the full path to a 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