Introduce "generator expressions" to add_test()
[cmake.git] / Source / cmPropertyDefinition.cxx
blob7a3e3425fc85c3c054cab3563fccec2928415d3c
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmPropertyDefinition.cxx,v $
5 Language: C++
6 Date: $Date: 2007-10-22 16:48:39 $
7 Version: $Revision: 1.9 $
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 #include "cmPropertyDefinition.h"
18 #include "cmSystemTools.h"
20 cmDocumentationEntry cmPropertyDefinition::GetDocumentation() const
22 cmDocumentationEntry e;
23 e.Name = this->Name;
24 e.Brief = this->ShortDescription;
25 e.Full = this->FullDescription;
26 return e;
29 void cmPropertyDefinition
30 ::DefineProperty(const char *name, cmProperty::ScopeType scope,
31 const char *shortDescription,
32 const char *fullDescription,
33 const char *sec,
34 bool chain)
36 this->Name = name;
37 this->Scope = scope;
38 this->Chained = chain;
39 if (shortDescription)
41 this->ShortDescription = shortDescription;
43 if (fullDescription)
45 this->FullDescription = fullDescription;
47 if (sec)
49 this->DocumentationSection = sec;