cmGlobalKdevelopGenerator.cxx 2.1 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. Copyright (c) 2004 Alexander Neundorf, [email protected]. All rights reserved.
  9. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  10. This software is distributed WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE. See the above copyright notices for more information.
  13. =========================================================================*/
  14. #include "cmGlobalKdevelopGenerator.h"
  15. #include "cmLocalKdevelopGenerator.h"
  16. #include "cmMakefile.h"
  17. #include "cmake.h"
  18. cmGlobalKdevelopGenerator::cmGlobalKdevelopGenerator()
  19. {
  20. // This type of makefile always requires unix style paths
  21. m_ForceUnixPaths = true;
  22. m_FindMakeProgramFile = "CMakeUnixFindMake.cmake";
  23. }
  24. ///! Create a local generator appropriate to this Global Generator
  25. cmLocalGenerator *cmGlobalKdevelopGenerator::CreateLocalGenerator()
  26. {
  27. cmLocalGenerator *lg = new cmLocalKdevelopGenerator;
  28. lg->SetGlobalGenerator(this);
  29. return lg;
  30. }
  31. //----------------------------------------------------------------------------
  32. void cmGlobalKdevelopGenerator::GetDocumentation(cmDocumentationEntry& entry) const
  33. {
  34. entry.name = this->GetName();
  35. entry.brief = "Generates KDevelop 3 project files.";
  36. entry.full =
  37. "Project files for KDevelop 3 will be created in the top directory and in every subdirectory "
  38. "which features a CMakeLists.txt file containing a PROJECT() call. "
  39. "If you change the settings using KDevelop cmake will try its best "
  40. "to keep your changes when regenerating the project files. "
  41. "Additionally a hierarchy of UNIX makefiles is generated into the build tree. Any "
  42. "standard UNIX-style make program can build the project through the "
  43. "default make target. A \"make install\" target is also provided.";
  44. }