CMake/Source/cmDSWWriter.h

56 lines
1.3 KiB
C
Raw Normal View History

/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 National Library of Medicine
All rights reserved.
See COPYRIGHT.txt for copyright details.
=========================================================================*/
#ifndef cmDSWMakefile_h
#define cmDSWMakefile_h
2001-01-11 22:47:38 +03:00
#include "cmStandardIncludes.h"
#include "cmMakefile.h"
class cmDSPMakefile;
class cmMSProjectGenerator;
2001-01-11 22:47:38 +03:00
/** \class cmDSWMakefile
* \brief Write a Microsoft Visual C++ DSW (workspace) file.
*
* cmDSWMakefile produces a Microsoft Visual C++ DSW (workspace) file.
*/
class cmDSWMakefile
{
public:
2001-01-11 22:47:38 +03:00
/**
* Constructor.
*/
cmDSWMakefile(cmMakefile*);
2001-01-11 22:47:38 +03:00
/**
* Generate the DSW workspace file.
*/
virtual void OutputDSWFile();
2001-01-11 22:47:38 +03:00
private:
void FindAllCMakeListsFiles(const char* subdir,
std::vector<cmMSProjectGenerator*>&);
void WriteDSWFile(std::ostream& fout);
void WriteDSWHeader(std::ostream& fout);
void WriteProject(std::ostream& fout,
const char* name, const char* path,
cmDSPMakefile* project, const cmTarget &t);
void WriteDSWFooter(std::ostream& fout);
cmMakefile* m_Makefile;
};
#endif