cmPropertyDefinition.cxx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmPropertyDefinition.h"
  11. #include "cmSystemTools.h"
  12. cmDocumentationEntry cmPropertyDefinition::GetDocumentation() const
  13. {
  14. cmDocumentationEntry e;
  15. e.Name = this->Name;
  16. e.Brief = this->ShortDescription;
  17. e.Full = this->FullDescription;
  18. return e;
  19. }
  20. void cmPropertyDefinition
  21. ::DefineProperty(const char *name, cmProperty::ScopeType scope,
  22. const char *shortDescription,
  23. const char *fullDescription,
  24. const char *sec,
  25. bool chain)
  26. {
  27. this->Name = name;
  28. this->Scope = scope;
  29. this->Chained = chain;
  30. if (shortDescription)
  31. {
  32. this->ShortDescription = shortDescription;
  33. }
  34. if (fullDescription)
  35. {
  36. this->FullDescription = fullDescription;
  37. }
  38. if (sec)
  39. {
  40. this->DocumentationSection = sec;
  41. }
  42. }