cmFindFileCommand.h 931 B

12345678910111213141516171819202122232425262728293031323334
  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 "cm_memory.hxx"
  7. #include "cmCommand.h"
  8. #include "cmFindPathCommand.h"
  9. /** \class cmFindFileCommand
  10. * \brief Define a command to search for an executable program.
  11. *
  12. * cmFindFileCommand is used to define a CMake variable
  13. * that specifies an executable program. The command searches
  14. * in the current path (e.g., PATH environment variable) for
  15. * an executable that matches one of the supplied names.
  16. */
  17. class cmFindFileCommand : public cmFindPathCommand
  18. {
  19. public:
  20. cmFindFileCommand();
  21. /**
  22. * This is a virtual constructor for the command.
  23. */
  24. std::unique_ptr<cmCommand> Clone() override
  25. {
  26. return cm::make_unique<cmFindFileCommand>();
  27. }
  28. };
  29. #endif