123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef cmGetPropertyCommand_h
- #define cmGetPropertyCommand_h
- #include "cmConfigure.h"
- #include <string>
- #include <vector>
- #include "cmCommand.h"
- class cmExecutionStatus;
- class cmGetPropertyCommand : public cmCommand
- {
- public:
- cmGetPropertyCommand();
- cmCommand* Clone() override { return new cmGetPropertyCommand; }
-
- bool InitialPass(std::vector<std::string> const& args,
- cmExecutionStatus& status) override;
- private:
- enum OutType
- {
- OutValue,
- OutDefined,
- OutBriefDoc,
- OutFullDoc,
- OutSet
- };
- std::string Variable;
- std::string Name;
- std::string PropertyName;
- OutType InfoType;
-
- bool StoreResult(const char* value);
-
- bool HandleGlobalMode();
- bool HandleDirectoryMode();
- bool HandleTargetMode();
- bool HandleSourceMode();
- bool HandleTestMode();
- bool HandleVariableMode();
- bool HandleCacheMode();
- bool HandleInstallMode();
- };
- #endif
|