cmMSProjectGenerator.cxx 983 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 "cmMSProjectGenerator.h"
  12. #include "cmDSWMakefile.h"
  13. #include "cmDSPMakefile.h"
  14. cmMSProjectGenerator::cmMSProjectGenerator()
  15. {
  16. m_DSWMakefile = 0;
  17. m_DSPMakefile = 0;
  18. BuildDSWOn();
  19. }
  20. void cmMSProjectGenerator::GenerateMakefile()
  21. {
  22. if(m_BuildDSW)
  23. {
  24. m_DSWMakefile = new cmDSWMakefile(m_Makefile);
  25. m_DSWMakefile->OutputDSWFile();
  26. }
  27. else
  28. {
  29. m_DSPMakefile = new cmDSPMakefile(m_Makefile);
  30. m_DSPMakefile->OutputDSPFile();
  31. }
  32. }
  33. cmMSProjectGenerator::~cmMSProjectGenerator()
  34. {
  35. delete m_DSPMakefile;
  36. delete m_DSWMakefile;
  37. }