cmFindPathCommand.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 cmFindPathCommand_h
  4. #define cmFindPathCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cmFindBase.h"
  9. class cmExecutionStatus;
  10. /** \class cmFindPathCommand
  11. * \brief Define a command to search for a library.
  12. *
  13. * cmFindPathCommand is used to define a CMake variable
  14. * that specifies a library. The command searches for a given
  15. * file in a list of directories.
  16. */
  17. class cmFindPathCommand : public cmFindBase
  18. {
  19. public:
  20. cmFindPathCommand(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);
  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);
  32. #endif