cmFindFileCommand.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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() const { return "find_file";}
  33. cmTypeMacro(cmFindFileCommand, cmFindPathCommand);
  34. };
  35. #endif