cmFindFileCommand.h 902 B

1234567891011121314151617181920212223242526272829303132
  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 <string>
  7. #include <vector>
  8. #include "cmFindPathCommand.h"
  9. class cmExecutionStatus;
  10. /** \class cmFindFileCommand
  11. * \brief Define a command to search for an executable program.
  12. *
  13. * cmFindFileCommand is used to define a CMake variable
  14. * that specifies an executable program. The command searches
  15. * in the current path (e.g., PATH environment variable) for
  16. * an executable that matches one of the supplied names.
  17. */
  18. class cmFindFileCommand : public cmFindPathCommand
  19. {
  20. public:
  21. cmFindFileCommand(cmExecutionStatus& status);
  22. };
  23. bool cmFindFile(std::vector<std::string> const& args,
  24. cmExecutionStatus& status);
  25. #endif