From 2c1204e36167ef31bd8443fb46e0e540b425a61c Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 4 Apr 2007 11:22:14 -0400 Subject: [PATCH] ENH: Added cmGlobalVisualStudioGenerator as superclass to all VS global generators. --- Source/CMakeLists.txt | 2 ++ Source/cmGlobalVisualStudio6Generator.h | 4 +-- Source/cmGlobalVisualStudio7Generator.h | 4 +-- Source/cmGlobalVisualStudioGenerator.cxx | 27 ++++++++++++++++++ Source/cmGlobalVisualStudioGenerator.h | 35 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 4 deletions(-) create mode 100644 Source/cmGlobalVisualStudioGenerator.cxx create mode 100644 Source/cmGlobalVisualStudioGenerator.h diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 825d76a17..f32ce0f06 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -210,6 +210,8 @@ IF (WIN32) cmGlobalVisualStudio8Generator.h cmGlobalVisualStudio8Win64Generator.cxx cmGlobalVisualStudio8Win64Generator.h + cmGlobalVisualStudioGenerator.cxx + cmGlobalVisualStudioGenerator.h cmGlobalWatcomWMakeGenerator.cxx cmLocalVisualStudio6Generator.cxx cmLocalVisualStudio6Generator.h diff --git a/Source/cmGlobalVisualStudio6Generator.h b/Source/cmGlobalVisualStudio6Generator.h index 792e7b195..ce330c7c7 100644 --- a/Source/cmGlobalVisualStudio6Generator.h +++ b/Source/cmGlobalVisualStudio6Generator.h @@ -17,7 +17,7 @@ #ifndef cmGlobalVisualStudio6Generator_h #define cmGlobalVisualStudio6Generator_h -#include "cmGlobalGenerator.h" +#include "cmGlobalVisualStudioGenerator.h" class cmTarget; @@ -26,7 +26,7 @@ class cmTarget; * * cmGlobalVisualStudio6Generator manages UNIX build process for a tree */ -class cmGlobalVisualStudio6Generator : public cmGlobalGenerator +class cmGlobalVisualStudio6Generator : public cmGlobalVisualStudioGenerator { public: cmGlobalVisualStudio6Generator(); diff --git a/Source/cmGlobalVisualStudio7Generator.h b/Source/cmGlobalVisualStudio7Generator.h index 7719cd950..7bdc37894 100644 --- a/Source/cmGlobalVisualStudio7Generator.h +++ b/Source/cmGlobalVisualStudio7Generator.h @@ -17,7 +17,7 @@ #ifndef cmGlobalVisualStudio7Generator_h #define cmGlobalVisualStudio7Generator_h -#include "cmGlobalGenerator.h" +#include "cmGlobalVisualStudioGenerator.h" class cmTarget; struct cmVS7FlagTable; @@ -27,7 +27,7 @@ struct cmVS7FlagTable; * * cmGlobalVisualStudio7Generator manages UNIX build process for a tree */ -class cmGlobalVisualStudio7Generator : public cmGlobalGenerator +class cmGlobalVisualStudio7Generator : public cmGlobalVisualStudioGenerator { public: cmGlobalVisualStudio7Generator(); diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx new file mode 100644 index 000000000..8a7c4ff7b --- /dev/null +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -0,0 +1,27 @@ +/*========================================================================= + + Program: CMake - Cross-Platform Makefile Generator + Module: $RCSfile$ + Language: C++ + Date: $Date$ + Version: $Revision$ + + Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. + See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ +#include "cmGlobalVisualStudioGenerator.h" + +//---------------------------------------------------------------------------- +cmGlobalVisualStudioGenerator::cmGlobalVisualStudioGenerator() +{ +} + +//---------------------------------------------------------------------------- +cmGlobalVisualStudioGenerator::~cmGlobalVisualStudioGenerator() +{ +} diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h new file mode 100644 index 000000000..53bee5fba --- /dev/null +++ b/Source/cmGlobalVisualStudioGenerator.h @@ -0,0 +1,35 @@ +/*========================================================================= + + Program: CMake - Cross-Platform Makefile Generator + Module: $RCSfile$ + Language: C++ + Date: $Date$ + Version: $Revision$ + + Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. + See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ +#ifndef cmGlobalVisualStudioGenerator_h +#define cmGlobalVisualStudioGenerator_h + +#include "cmGlobalGenerator.h" + +/** \class cmGlobalVisualStudioGenerator + * \brief Base class for global Visual Studio generators. + * + * cmGlobalVisualStudioGenerator provides functionality common to all + * global Visual Studio generators. + */ +class cmGlobalVisualStudioGenerator : public cmGlobalGenerator +{ +public: + cmGlobalVisualStudioGenerator(); + virtual ~cmGlobalVisualStudioGenerator(); +}; + +#endif