cmake/Source/cmFindPathCommand.h

42 lines
1.2 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2017-07-20 19:35:53 +02:00
2017-04-14 19:02:05 +02:00
#include <string>
#include <vector>
#include "cmFindBase.h"
2017-04-14 19:02:05 +02:00
class cmExecutionStatus;
/** \class cmFindPathCommand
* \brief Define a command to search for a library.
*
* cmFindPathCommand is used to define a CMake variable
* that specifies a library. The command searches for a given
* file in a list of directories.
*/
class cmFindPathCommand : public cmFindBase
{
public:
2020-02-01 23:06:01 +01:00
cmFindPathCommand(cmExecutionStatus& status);
2021-09-14 00:13:48 +02:00
cmFindPathCommand(std::string findCommandName, cmExecutionStatus& status);
2020-02-01 23:06:01 +01:00
bool InitialPass(std::vector<std::string> const& args);
bool IncludeFileInPath;
2016-07-09 11:21:54 +02:00
private:
std::string FindHeaderInFramework(std::string const& file,
2022-03-29 21:10:50 +02:00
std::string const& dir,
cmFindBaseDebugState& debug) const;
std::string FindHeader();
2020-08-30 11:54:41 +02:00
std::string FindNormalHeader(cmFindBaseDebugState& debug);
std::string FindFrameworkHeader(cmFindBaseDebugState& debug);
};
2020-02-01 23:06:01 +01:00
bool cmFindPath(std::vector<std::string> const& args,
cmExecutionStatus& status);