1
0

cmFindFileCommand.h 1.5 KB

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