1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmTest.h,v $
6 Date: $Date: 2008/01/17 23:13:55 $
7 Version: $Revision: 1.6 $
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 =========================================================================*/
20 #include "cmCustomCommand.h"
21 #include "cmPropertyMap.h"
25 * \brief Represent a test
27 * cmTest is representation of a test.
37 ///! Set the test name
38 void SetName(const char* name
);
39 const char* GetName() const { return this->Name
.c_str(); }
40 void SetCommand(const char* command
);
41 const char* GetCommand() const { return this->Command
.c_str(); }
42 void SetArguments(const std::vector
<cmStdString
>& args
);
43 const std::vector
<cmStdString
>& GetArguments() const
49 * Print the structure to std::cout.
53 ///! Set/Get a property of this source file
54 void SetProperty(const char *prop
, const char *value
);
55 void AppendProperty(const char* prop
, const char* value
);
56 const char *GetProperty(const char *prop
) const;
57 bool GetPropertyAsBool(const char *prop
) const;
58 cmPropertyMap
&GetProperties() { return this->Properties
; };
60 // Define the properties
61 static void DefineProperties(cmake
*cm
);
63 ///! Set the cmMakefile that owns this test
64 void SetMakefile(cmMakefile
*mf
);
65 cmMakefile
*GetMakefile() { return this->Makefile
;};
68 cmPropertyMap Properties
;
71 std::vector
<cmStdString
> Args
;
73 // The cmMakefile instance that owns this target. This should