Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmGetCMakePropertyCommand.h
blob727f949aad6c27b68a50205fe685e104bc1c25e3
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGetCMakePropertyCommand.h,v $
5 Language: C++
6 <<<<<<< cmGetCMakePropertyCommand.h
7 Date: $Date: 2008/01/23 15:27:59 $
8 Version: $Revision: 1.8 $
9 =======
10 Date: $Date: 2008-07-08 15:52:25 $
11 Version: $Revision: 1.9 $
12 >>>>>>> 1.9
14 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
15 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17 This software is distributed WITHOUT ANY WARRANTY; without even
18 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19 PURPOSE. See the above copyright notices for more information.
21 =========================================================================*/
22 #ifndef cmGetCMakePropertyCommand_h
23 #define cmGetCMakePropertyCommand_h
25 #include "cmCommand.h"
27 class cmGetCMakePropertyCommand : public cmCommand
29 public:
30 virtual cmCommand* Clone()
32 return new cmGetCMakePropertyCommand;
35 /**
36 * This is called when the command is first encountered in
37 * the input file.
39 virtual bool InitialPass(std::vector<std::string> const& args,
40 cmExecutionStatus &status);
42 /**
43 * This determines if the command is invoked when in script mode.
45 virtual bool IsScriptable() { return true; }
47 /**
48 * The name of the command as specified in CMakeList.txt.
50 virtual const char* GetName() { return "get_cmake_property";}
52 /**
53 * Succinct documentation.
55 virtual const char* GetTerseDocumentation()
57 return "Get a property of the CMake instance.";
60 /**
61 * Longer documentation.
63 virtual const char* GetFullDocumentation()
65 return
66 " get_cmake_property(VAR property)\n"
67 "Get a property from the CMake instance. The value of the "
68 "property is stored in the variable VAR. If the property is "
69 "not found, CMake will report an error. Some supported properties "
70 "include: VARIABLES, CACHE_VARIABLES, COMMANDS, MACROS, and "
71 "COMPONENTS.";
74 cmTypeMacro(cmGetCMakePropertyCommand, cmCommand);
79 #endif