cmCableSourceFilesCommand.cxx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2000 National Library of Medicine
  8. All rights reserved.
  9. See COPYRIGHT.txt for copyright details.
  10. =========================================================================*/
  11. #include "cmCableSourceFilesCommand.h"
  12. #include "cmCacheManager.h"
  13. /**
  14. * Write the CABLE configuration code to indicate header dependencies for
  15. * a package.
  16. */
  17. void cmCableSourceFilesCommand::WriteConfiguration() const
  18. {
  19. std::ostream& os = m_CableData->GetOutputStream();
  20. cmCableData::Indentation indent = m_CableData->GetIndentation();
  21. cmRegularExpression needCdataBlock("[&<>]");
  22. os << indent << "<Headers>" << std::endl;
  23. for(Entries::const_iterator f = m_Entries.begin();
  24. f != m_Entries.end(); ++f)
  25. {
  26. os << indent << " <File name=\"" << f->c_str() << ".h\"/>" << std::endl;
  27. }
  28. os << indent << "</Headers>" << std::endl;
  29. }