CMake/Source/cmFindFileCommand.h

44 lines
1.3 KiB
C
Raw Permalink Normal View History

/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2001-02-27 01:13:30 +03: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
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
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.
*/
virtual cmCommand* Clone()
2001-02-27 01:13:30 +03:00
{
return new cmFindFileCommand;
}
2014-02-25 05:19:17 +04:00
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