1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #ifndef cmFindFileCommand_h
13 #define cmFindFileCommand_h
15 #include "cmFindPathCommand.h"
17 /** \class cmFindFileCommand
18 * \brief Define a command to search for an executable program.
20 * cmFindFileCommand is used to define a CMake variable
21 * that specifies an executable program. The command searches
22 * in the current path (e.g., PATH environment variable) for
23 * an executable that matches one of the supplied names.
25 class cmFindFileCommand : public cmFindPathCommand
30 * This is a virtual constructor for the command.
32 virtual cmCommand* Clone()
34 return new cmFindFileCommand;
36 virtual const char* GetName() const { return "find_file";}
39 * Succinct documentation.
41 virtual const char* GetTerseDocumentation() const
43 return "Find the full path to a file.";
46 cmTypeMacro(cmFindFileCommand, cmFindPathCommand);
48 virtual void GenerateDocumentation();