1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGetTestPropertyCommand.h,v $
6 Date: $Date: 2008-01-23 15:27:59 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmGetTestPropertyCommand_h
18 #define cmGetTestPropertyCommand_h
20 #include "cmCommand.h"
22 class cmGetTestPropertyCommand
: public cmCommand
25 virtual cmCommand
* Clone()
27 return new cmGetTestPropertyCommand
;
31 * This is called when the command is first encountered in
34 virtual bool InitialPass(std::vector
<std::string
> const& args
,
35 cmExecutionStatus
&status
);
38 * The name of the command as specified in CMakeList.txt.
40 virtual const char* GetName() { return "get_test_property";}
43 * Succinct documentation.
45 virtual const char* GetTerseDocumentation()
47 return "Get a property of the test.";
51 * Longer documentation.
53 virtual const char* GetFullDocumentation()
56 " get_test_property(test VAR property)\n"
57 "Get a property from the Test. The value of the property is "
58 "stored in the variable VAR. If the property is not found, "
59 "CMake will report an error. For a list of standard properties "
60 "you can type cmake --help-property-list";
63 cmTypeMacro(cmGetTestPropertyCommand
, cmCommand
);