1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmMSProjectGenerator.h,v $
6 Date: $Date: 2002-04-02 20:42:13 $
7 Version: $Revision: 1.10 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmMSProjectGenerator_h
18 #define cmMSProjectGenerator_h
20 #include "cmStandardIncludes.h"
21 #include "cmMakefileGenerator.h"
26 /** \class cmMSProjectGenerator
27 * \brief Write a Microsoft Visual C++ DSP (project) file.
29 * cmMSProjectGenerator produces a Microsoft Visual C++ DSP (project) file.
31 class cmMSProjectGenerator
: public cmMakefileGenerator
34 ///! Constructor sets the generation of DSW files on.
35 cmMSProjectGenerator();
38 ~cmMSProjectGenerator();
40 ///! Get the name for the generator.
41 virtual const char* GetName() {return "Visual Studio 6";}
43 ///! virtual copy constructor
44 virtual cmMakefileGenerator
* CreateObject()
45 { return new cmMSProjectGenerator
;}
47 ///! Produce the makefile (in this case a Microsoft Visual C++ project).
48 virtual void GenerateMakefile();
50 ///! controls the DSW/DSP settings
51 virtual void SetLocal(bool);
54 * Turn off the generation of a Microsoft Visual C++ DSW file.
55 * This causes only the dsp file to be created. This
56 * is used to run as a command line program from inside visual
59 void BuildDSWOff() {m_BuildDSW
= false;}
61 ///! Turn on the generation of a Microsoft Visual C++ DSW file.
62 void BuildDSWOn() {m_BuildDSW
= true;}
64 ///! Retrieve a pointer to a cmDSWWriter instance.
65 cmDSWWriter
* GetDSWWriter()
68 ///! Retrieve a pointer to a cmDSPWriter instance.
69 cmDSPWriter
* GetDSPWriter()
73 * Try to determine system infomation such as shared library
74 * extension, pthreads, byte order etc.
76 virtual void EnableLanguage(const char*);
79 cmDSWWriter
* m_DSWWriter
;
80 cmDSPWriter
* m_DSPWriter
;