\class cmFindPackageCommand * \brief Load settings from an external project. * * cmFindPackageCommand */
| 43 | * cmFindPackageCommand |
| 44 | */ |
| 45 | class cmFindPackageCommand : public cmFindCommon |
| 46 | { |
| 47 | public: |
| 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 | |
| 81 | private: |
| 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…