cmPropertyDefinition.cxx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmPropertyDefinition.h"
  14. #include "cmSystemTools.h"
  15. cmDocumentationEntry cmPropertyDefinition::GetDocumentation() const
  16. {
  17. cmDocumentationEntry e;
  18. e.Name = this->Name;
  19. e.Brief = this->ShortDescription;
  20. e.Full = this->FullDescription;
  21. return e;
  22. }
  23. void cmPropertyDefinition
  24. ::DefineProperty(const char *name, cmProperty::ScopeType scope,
  25. const char *shortDescription,
  26. const char *fullDescription,
  27. const char *sec,
  28. bool chain)
  29. {
  30. this->Name = name;
  31. this->Scope = scope;
  32. this->Chained = chain;
  33. if (shortDescription)
  34. {
  35. this->ShortDescription = shortDescription;
  36. }
  37. if (fullDescription)
  38. {
  39. this->FullDescription = fullDescription;
  40. }
  41. if (sec)
  42. {
  43. this->DocumentationSection = sec;
  44. }
  45. }