diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSourceFilesRequireCommand.cxx | 79 | ||||
-rw-r--r-- | Source/cmSourceFilesRequireCommand.h | 100 | ||||
-rw-r--r-- | Source/cmUnixDefinesCommand.cxx | 63 | ||||
-rw-r--r-- | Source/cmUnixDefinesCommand.h | 109 | ||||
-rw-r--r-- | Source/cmUnixLibrariesCommand.cxx | 63 | ||||
-rw-r--r-- | Source/cmUnixLibrariesCommand.h | 108 | ||||
-rw-r--r-- | Source/cmWin32DefinesCommand.cxx | 63 | ||||
-rw-r--r-- | Source/cmWin32DefinesCommand.h | 109 | ||||
-rw-r--r-- | Source/cmWin32IncludeDirectoryCommand.cxx | 65 | ||||
-rw-r--r-- | Source/cmWin32IncludeDirectoryCommand.h | 108 | ||||
-rw-r--r-- | Source/cmWin32LibrariesCommand.cxx | 64 | ||||
-rw-r--r-- | Source/cmWin32LibrariesCommand.h | 108 |
12 files changed, 0 insertions, 1039 deletions
diff --git a/Source/cmSourceFilesRequireCommand.cxx b/Source/cmSourceFilesRequireCommand.cxx deleted file mode 100644 index 46b249f..0000000 --- a/Source/cmSourceFilesRequireCommand.cxx +++ /dev/null @@ -1,79 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#include "cmSourceFilesRequireCommand.h" - -// cmSourceFilesRequireCommand -bool cmSourceFilesRequireCommand::Invoke(std::vector<std::string>& args) -{ - this->SetError(" deprecated - use SourceFiles command inside an If block "); - return false; - - std::vector<std::string>::iterator i = args.begin(); - // Search to the key word SOURCES_BEGIN is found - // if one of the required defines is not there, then - // return as none of the source files will be added - // if the required definition is not there. - while(i != args.end() && (*i) != "SOURCES_BEGIN" ) - { - if(!m_Makefile->GetDefinition((*i).c_str())) - { - return true; - } - i++; - } - if(i != args.end()) - { - i++; - } - - // Add the rest of the arguments as source files - const char *sname = (*i).c_str(); - ++i; - for(; i != args.end(); ++i) - { - cmSourceFile file; - file.SetIsAnAbstractClass(false); - file.SetName((*i).c_str(), m_Makefile->GetCurrentDirectory()); - m_Makefile->AddSource(file, sname); - } - return true; -} - diff --git a/Source/cmSourceFilesRequireCommand.h b/Source/cmSourceFilesRequireCommand.h deleted file mode 100644 index f6c2094..0000000 --- a/Source/cmSourceFilesRequireCommand.h +++ /dev/null @@ -1,100 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#ifndef cmSourceFilesRequireCommand_h -#define cmSourceFilesRequireCommand_h - -#include "cmStandardIncludes.h" -#include "cmCommand.h" - -/** \class cmSourceFilesRequireCommand - * \brief Add additional sources to the build if certain required files - * or CMake variables are defined. - * - * cmSourceFilesRequireCommand conditionally adds source files to the - * build if the specified files of CMake variables are defined. - * This command can be used to add source files that depend on external - * packages or operating system features. -*/ -class cmSourceFilesRequireCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmSourceFilesRequireCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool Invoke(std::vector<std::string>& args); - - /** - * The name of the command as specified in CMakeList.txt. - */ - virtual const char* GetName() { return "SOURCE_FILES_REQUIRE";} - - /** - * Succinct documentation. - */ - virtual const char* GetTerseDocumentation() - { - return "Add a list of source files to the source file list NAME\n" - "if the required variables are set."; - } - - /** - * More documentation. - */ - virtual const char* GetFullDocumentation() - { - return - "SOURCE_FILES_REQUIRE(var1 var2 ... SOURCES_BEGIN NAME file1 file2 ...)"; - } - - cmTypeMacro(cmSourceFilesRequireCommand, cmCommand); -}; - - -#endif diff --git a/Source/cmUnixDefinesCommand.cxx b/Source/cmUnixDefinesCommand.cxx deleted file mode 100644 index 03c48b1..0000000 --- a/Source/cmUnixDefinesCommand.cxx +++ /dev/null @@ -1,63 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#include "cmUnixDefinesCommand.h" - -cmUnixDefinesCommand::cmUnixDefinesCommand() -{ -#if defined(_WIN32) && !defined(__CYGWIN__) - this->EnabledOff(); -#endif -} - -// cmUNIXDefinesCommand -bool cmUnixDefinesCommand::Invoke(std::vector<std::string>& args) -{ - this->SetError(" deprecated - use AddDefinitions inside an If block "); - return false; - - for(std::vector<std::string>::iterator i = args.begin(); - i != args.end(); ++i) - { - m_Makefile->AddDefineFlag((*i).c_str()); - } - return true; -} - diff --git a/Source/cmUnixDefinesCommand.h b/Source/cmUnixDefinesCommand.h deleted file mode 100644 index 9d6d58a..0000000 --- a/Source/cmUnixDefinesCommand.h +++ /dev/null @@ -1,109 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#ifndef cmUnixDefinesCommand_h -#define cmUnixDefinesCommand_h - -#include "cmStandardIncludes.h" -#include "cmCommand.h" - -/** \class cmUnixDefinesCommand - * \brief Specify a list of compiler defines for Unix platforms. - * - * cmUnixDefinesCommand specifies a list of compiler defines for Unix platforms - * only. This defines will be added to the compile command. - */ -class cmUnixDefinesCommand : public cmCommand -{ -public: - /** - * Constructor. - */ - cmUnixDefinesCommand(); - - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmUnixDefinesCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool Invoke(std::vector<std::string>& args); - - /** - * This determines if the command gets propagated down - * to makefiles located in subdirectories. - */ - virtual bool IsInherited() {return true;} - - /** - * The name of the command as specified in CMakeList.txt. - */ - virtual const char* GetName() { return "UNIX_DEFINES";} - - /** - * Succinct documentation. - */ - virtual const char* GetTerseDocumentation() - { - return "Add -D flags to the command line for Unix only."; - } - - /** - * More documentation. - */ - virtual const char* GetFullDocumentation() - { - return - "UNIX_DEFINES(-DFOO -DBAR)\n" - "Add -D flags to the command line for Unix only."; - } - - cmTypeMacro(cmUnixDefinesCommand, cmCommand); -}; - - - -#endif diff --git a/Source/cmUnixLibrariesCommand.cxx b/Source/cmUnixLibrariesCommand.cxx deleted file mode 100644 index 6da186a..0000000 --- a/Source/cmUnixLibrariesCommand.cxx +++ /dev/null @@ -1,63 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#include "cmUnixLibrariesCommand.h" - -cmUnixLibrariesCommand::cmUnixLibrariesCommand() -{ -#if defined(_WIN32) && !defined(__CYGWIN__) - this->EnabledOff(); -#endif -} - -// cmUnixLibrariesCommand -bool cmUnixLibrariesCommand::Invoke(std::vector<std::string>& args) -{ - this->SetError(" deprecated - use LIBRARY command inside an IF block "); - return false; - - for(std::vector<std::string>::iterator i = args.begin(); - i != args.end(); ++i) - { - m_Makefile->AddLinkLibrary((*i).c_str()); - } - return true; -} - diff --git a/Source/cmUnixLibrariesCommand.h b/Source/cmUnixLibrariesCommand.h deleted file mode 100644 index ae9b7c1..0000000 --- a/Source/cmUnixLibrariesCommand.h +++ /dev/null @@ -1,108 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#ifndef cmUnixLibrariesCommand_h -#define cmUnixLibrariesCommand_h - -#include "cmStandardIncludes.h" -#include "cmCommand.h" - -/** \class cmUnixLibrariesCommand - * \brief Specify a list of libraries for Unix platforms. - * - * cmUnixLibrariesCommand specifies a list of libraries for Unix platforms - * only. Both user and system libraries can be listed. - */ -class cmUnixLibrariesCommand : public cmCommand -{ -public: - /** - * Constructor. - */ - cmUnixLibrariesCommand(); - - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmUnixLibrariesCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool Invoke(std::vector<std::string>& args); - - /** - * This determines if the command gets propagated down - * to makefiles located in subdirectories. - */ - virtual bool IsInherited() {return true;} - - /** - * The name of the command as specified in CMakeList.txt. - */ - virtual const char* GetName() {return "UNIX_LIBRARIES";} - - /** - * Succinct documentation. - */ - virtual const char* GetTerseDocumentation() - { - return "Add libraries that are only used for Unix programs."; - } - - /** - * More documentation. - */ - virtual const char* GetFullDocumentation() - { - return - "UNIX_LIBRARIES(library -lm ...)"; - } - - cmTypeMacro(cmUnixLibrariesCommand, cmCommand); -}; - - - -#endif diff --git a/Source/cmWin32DefinesCommand.cxx b/Source/cmWin32DefinesCommand.cxx deleted file mode 100644 index 4474aac..0000000 --- a/Source/cmWin32DefinesCommand.cxx +++ /dev/null @@ -1,63 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#include "cmWin32DefinesCommand.h" - -cmWin32DefinesCommand::cmWin32DefinesCommand() -{ -#ifndef _WIN32 - this->EnabledOff(); -#endif -} - -// cmWin32DefinesCommand -bool cmWin32DefinesCommand::Invoke(std::vector<std::string>& args) -{ - this->SetError(" deprecated - use AddDefinitions inside an If block "); - return false; - - for(std::vector<std::string>::iterator i = args.begin(); - i != args.end(); ++i) - { - m_Makefile->AddDefineFlag((*i).c_str()); - } - return true; -} - diff --git a/Source/cmWin32DefinesCommand.h b/Source/cmWin32DefinesCommand.h deleted file mode 100644 index 84c5b48..0000000 --- a/Source/cmWin32DefinesCommand.h +++ /dev/null @@ -1,109 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#ifndef cmWin32DefinesCommand_h -#define cmWin32DefinesCommand_h - -#include "cmStandardIncludes.h" -#include "cmCommand.h" - -/** \class cmWin32DefinesCommand - * \brief Specify a list of compiler defines for Win32 platforms. - * - * cmWin32DefinesCommand specifies a list of compiler defines for Win32 platforms - * only. This defines will be added to the compile command. - */ -class cmWin32DefinesCommand : public cmCommand -{ -public: - /** - * Constructor. - */ - cmWin32DefinesCommand(); - - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmWin32DefinesCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool Invoke(std::vector<std::string>& args); - - /** - * This determines if the command gets propagated down - * to makefiles located in subdirectories. - */ - virtual bool IsInherited() {return true;} - - /** - * The name of the command as specified in CMakeList.txt. - */ - virtual const char* GetName() {return "WIN32_DEFINES";} - - /** - * Succinct documentation. - */ - virtual const char* GetTerseDocumentation() - { - return "Add -D define flags to command line for Win32 environments."; - } - - /** - * More documentation. - */ - virtual const char* GetFullDocumentation() - { - return - "WIN32_DEFINES(-DFOO -DBAR ...)\n" - "Add -D define flags to command line for Win32 environments."; - } - - cmTypeMacro(cmWin32DefinesCommand, cmCommand); -}; - - - -#endif diff --git a/Source/cmWin32IncludeDirectoryCommand.cxx b/Source/cmWin32IncludeDirectoryCommand.cxx deleted file mode 100644 index 7b03b1a..0000000 --- a/Source/cmWin32IncludeDirectoryCommand.cxx +++ /dev/null @@ -1,65 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#include "cmWin32IncludeDirectoryCommand.h" -#include "cmCacheManager.h" - -// cmWin32IncludeDirectoryCommand -cmWin32IncludeDirectoryCommand::cmWin32IncludeDirectoryCommand() -{ -#ifndef _WIN32 - this->EnabledOff(); -#endif -} - - -bool cmWin32IncludeDirectoryCommand::Invoke(std::vector<std::string>& args) -{ - this->SetError(" deprecated - use INCLUDE_DIRECTORIES command inside an if block "); - return false; - - for(std::vector<std::string>::iterator i = args.begin(); - i != args.end(); ++i) - { - m_Makefile->AddIncludeDirectory((*i).c_str()); - } - return true; -} - diff --git a/Source/cmWin32IncludeDirectoryCommand.h b/Source/cmWin32IncludeDirectoryCommand.h deleted file mode 100644 index 6454f43..0000000 --- a/Source/cmWin32IncludeDirectoryCommand.h +++ /dev/null @@ -1,108 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#ifndef cmWin32IncludeDirectoryCommand_h -#define cmWin32IncludeDirectoryCommand_h - -#include "cmStandardIncludes.h" -#include "cmCommand.h" - -/** \class cmWin32IncludeDirectoryCommand - * \brief Add Win32 include directories to the build. - * - * cmWin32IncludeDirectoryCommand is used to specify directory locations - * to search for included files under a Windows system. - */ -class cmWin32IncludeDirectoryCommand : public cmCommand -{ -public: - /** - * Constructor - */ - cmWin32IncludeDirectoryCommand(); - - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmWin32IncludeDirectoryCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool Invoke(std::vector<std::string>& args); - - /** - * This determines if the command gets propagated down - * to makefiles located in subdirectories. - */ - virtual bool IsInherited() {return true;} - - /** - * The name of the command as specified in CMakeList.txt. - */ - virtual const char* GetName() { return "WIN32_INCLUDE_DIRECTORIES";} - - /** - * Succinct documentation. - */ - virtual const char* GetTerseDocumentation() - { - return "Add Win32 include directories to the build."; - } - - /** - * More documentation. - */ - virtual const char* GetFullDocumentation() - { - return - "WIN32_INCLUDE_DIRECTORIES(dir1 dir2 ...)"; - } - - cmTypeMacro(cmWin32IncludeDirectoryCommand, cmCommand); -}; - - - -#endif diff --git a/Source/cmWin32LibrariesCommand.cxx b/Source/cmWin32LibrariesCommand.cxx deleted file mode 100644 index 49eb4c7..0000000 --- a/Source/cmWin32LibrariesCommand.cxx +++ /dev/null @@ -1,64 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#include "cmWin32LibrariesCommand.h" - -cmWin32LibrariesCommand::cmWin32LibrariesCommand() -{ -#ifndef _WIN32 - this->EnabledOff(); -#endif -} - - -// cmWin32LibrariesCommand -bool cmWin32LibrariesCommand::Invoke(std::vector<std::string>& args) -{ - this->SetError(" deprecated - use LIBRARY command inside an IF block "); - return false; - - for(std::vector<std::string>::iterator i = args.begin(); - i != args.end(); ++i) - { - m_Makefile->AddLinkLibrary((*i).c_str()); - } - return true; -} - diff --git a/Source/cmWin32LibrariesCommand.h b/Source/cmWin32LibrariesCommand.h deleted file mode 100644 index 3c23eb7..0000000 --- a/Source/cmWin32LibrariesCommand.h +++ /dev/null @@ -1,108 +0,0 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - -Copyright (c) 2001 Insight Consortium -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name of the Insight Consortium, nor the names of any consortium members, - nor of any contributors, may be used to endorse or promote products derived - from this software without specific prior written permission. - - * Modified source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ -#ifndef cmWin32LibrariesCommand_h -#define cmWin32LibrariesCommand_h - -#include "cmStandardIncludes.h" -#include "cmCommand.h" - -/** \class cmWin32LibrariesCommand - * \brief Specify a list of libraries for Win32 platforms. - * - * cmWin32LibrariesCommand specifies a list of libraries for Win32 platforms - * only. Both user and system libraries can be listed. - */ -class cmWin32LibrariesCommand : public cmCommand -{ -public: - /** - * Constructor. - */ - cmWin32LibrariesCommand(); - - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmWin32LibrariesCommand ; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool Invoke(std::vector<std::string>& args); - - /** - * This determines if the command gets propagated down - * to makefiles located in subdirectories. - */ - virtual bool IsInherited() {return true;} - - /** - * The name of the command as specified in CMakeList.txt. - */ - virtual const char* GetName() { return "WIN32_LIBRARIES";} - - /** - * Succinct documentation. - */ - virtual const char* GetTerseDocumentation() - { - return "Add libraries that are only used for Win32 programs."; - } - - /** - * More documentation. - */ - virtual const char* GetFullDocumentation() - { - return - "WIN32_LIBRARIES(library -lm ...)"; - } - - cmTypeMacro(cmWin32LibrariesCommand, cmCommand); -}; - - - -#endif |