From e784f153cf93796b0386fec91e09607cf546ff73 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 12 Apr 2001 09:49:33 -0400 Subject: [PATCH] removed old rules --- Source/cmExecutablesCommand.cxx | 35 ---------------- Source/cmExecutablesCommand.h | 71 --------------------------------- 2 files changed, 106 deletions(-) delete mode 100644 Source/cmExecutablesCommand.cxx delete mode 100644 Source/cmExecutablesCommand.h diff --git a/Source/cmExecutablesCommand.cxx b/Source/cmExecutablesCommand.cxx deleted file mode 100644 index 748705d05..000000000 --- a/Source/cmExecutablesCommand.cxx +++ /dev/null @@ -1,35 +0,0 @@ -/*========================================================================= - - 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. - -=========================================================================*/ -#include "cmExecutablesCommand.h" - -// cmExecutableCommand -bool cmExecutablesCommand::Invoke(std::vector& args) -{ - if(args.size() < 1 ) - { - this->SetError("called with incorrect number of arguments"); - return false; - } - for(std::vector::iterator i = args.begin(); - i != args.end(); ++i) - { - cmClassFile file; - file.SetName((*i).c_str(), m_Makefile->GetCurrentDirectory()); - m_Makefile->AddExecutable(file); - } - return true; -} - diff --git a/Source/cmExecutablesCommand.h b/Source/cmExecutablesCommand.h deleted file mode 100644 index 48b013ffa..000000000 --- a/Source/cmExecutablesCommand.h +++ /dev/null @@ -1,71 +0,0 @@ -/*========================================================================= - - 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 cmExecutablesCommand_h -#define cmExecutablesCommand_h - -#include "cmStandardIncludes.h" -#include "cmCommand.h" - -/** \class cmExecutablesCommand - * \brief Defines a list of executables to build. - * - * cmExecutablesCommand defines a list of executable (i.e., test) - * programs to create. - */ -class cmExecutablesCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmExecutablesCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool Invoke(std::vector& args); - - /** - * The name of the command as specified in CMakeList.txt. - */ - virtual const char* GetName() { return "EXECUTABLES";} - - /** - * Succinct documentation. - */ - virtual const char* GetTerseDocumentation() - { - return "Add a list of executables files."; - } - - /** - * More documentation. - */ - virtual const char* GetFullDocumentation() - { - return - "EXECUTABLES(file1 file2 ...)"; - } - - cmTypeMacro(cmExecutablesCommand, cmCommand); -}; - - -#endif