FIX: stupid pb fixed (close to being medieval'ed by The Ken)
[cmake.git] / Source / cmMSProjectGenerator.h
blob91854028e1059ff7cc0f4e78c55513f0a736fd71
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmMSProjectGenerator.h,v $
5 Language: C++
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"
23 class cmDSPWriter;
24 class cmDSWWriter;
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
33 public:
34 ///! Constructor sets the generation of DSW files on.
35 cmMSProjectGenerator();
37 ///! Destructor.
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);
53 /**
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
57 * studio.
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()
66 {return m_DSWWriter;}
68 ///! Retrieve a pointer to a cmDSPWriter instance.
69 cmDSPWriter* GetDSPWriter()
70 {return m_DSPWriter;}
72 /**
73 * Try to determine system infomation such as shared library
74 * extension, pthreads, byte order etc.
76 virtual void EnableLanguage(const char*);
78 private:
79 cmDSWWriter* m_DSWWriter;
80 cmDSPWriter* m_DSPWriter;
81 bool m_BuildDSW;
85 #endif