MCPcopy Create free account
hub / github.com/Kitware/CMake / cmFindPackageCommand

Class cmFindPackageCommand

Source/cmFindPackageCommand.h:45–386  ·  view source on GitHub ↗

\class cmFindPackageCommand * \brief Load settings from an external project. * * cmFindPackageCommand */

Source from the content-addressed store, hash-verified

43 * cmFindPackageCommand
44 */
45class cmFindPackageCommand : public cmFindCommon
46{
47public:
48 /*! A sorting order strategy to be applied to recovered package folders (see
49 * FIND_PACKAGE_SORT_ORDER)*/
50 enum /*class*/ SortOrderType
51 {
52 None,
53 Name_order,
54 Natural
55 };
56 /*! A sorting direction to be applied to recovered package folders (see
57 * FIND_PACKAGE_SORT_DIRECTION)*/
58 enum /*class*/ SortDirectionType
59 {
60 Asc,
61 Dec
62 };
63
64 enum class PackageDescriptionType
65 {
66 Any,
67 CMake,
68 Cps,
69 };
70
71 /*! sorts a given list of string based on the input sort parameters */
72 static void Sort(std::vector<std::string>::iterator begin,
73 std::vector<std::string>::iterator end, SortOrderType order,
74 SortDirectionType dir);
75
76 cmFindPackageCommand(cmExecutionStatus& status);
77 ~cmFindPackageCommand() override;
78
79 bool InitialPass(std::vector<std::string> const& args);
80
81private:
82 class PathLabel : public cmFindCommon::PathLabel
83 {
84 protected:
85 PathLabel();
86
87 public:
88 PathLabel(std::string const& label)
89 : cmFindCommon::PathLabel(label)
90 {
91 }
92 static PathLabel PackageRedirect;
93 static PathLabel UserRegistry;
94 static PathLabel Builds;
95 static PathLabel SystemRegistry;
96 };
97
98 void InheritOptions(cmFindPackageCommand* other);
99
100 bool IsFound() const override;
101 bool IsDefined() const override;
102

Callers 1

cmFindPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…