cmFindPathCommand.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. #include <vector>
  7. #include "cmFindBase.h"
  8. class cmExecutionStatus;
  9. /** \class cmFindPathCommand
  10. * \brief Define a command to search for a library.
  11. *
  12. * cmFindPathCommand is used to define a CMake variable
  13. * that specifies a library. The command searches for a given
  14. * file in a list of directories.
  15. */
  16. class cmFindPathCommand : public cmFindBase
  17. {
  18. public:
  19. cmFindPathCommand(cmExecutionStatus& status);
  20. cmFindPathCommand(std::string findCommandName, cmExecutionStatus& status);
  21. bool InitialPass(std::vector<std::string> const& args);
  22. bool IncludeFileInPath;
  23. private:
  24. std::string FindHeaderInFramework(std::string const& file,
  25. std::string const& dir) const;
  26. std::string FindHeader();
  27. std::string FindNormalHeader(cmFindBaseDebugState& debug);
  28. std::string FindFrameworkHeader(cmFindBaseDebugState& debug);
  29. };
  30. bool cmFindPath(std::vector<std::string> const& args,
  31. cmExecutionStatus& status);