cmFindFileCommand.h 861 B

123456789101112131415161718192021222324252627282930
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmFindFileCommand_h
  4. #define cmFindFileCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmFindPathCommand.h"
  7. class cmCommand;
  8. /** \class cmFindFileCommand
  9. * \brief Define a command to search for an executable program.
  10. *
  11. * cmFindFileCommand is used to define a CMake variable
  12. * that specifies an executable program. The command searches
  13. * in the current path (e.g., PATH environment variable) for
  14. * an executable that matches one of the supplied names.
  15. */
  16. class cmFindFileCommand : public cmFindPathCommand
  17. {
  18. public:
  19. cmFindFileCommand();
  20. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. cmCommand* Clone() override { return new cmFindFileCommand; }
  24. };
  25. #endif