diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-12 13:49:33 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-12 13:49:33 (GMT) |
commit | e784f153cf93796b0386fec91e09607cf546ff73 (patch) | |
tree | 86c1265e43a83b8c6f57c7109e589c20c10a1def | |
parent | 69308873f9d71e7144a54736795ab691e39ce89e (diff) | |
download | CMake-e784f153cf93796b0386fec91e09607cf546ff73.zip CMake-e784f153cf93796b0386fec91e09607cf546ff73.tar.gz CMake-e784f153cf93796b0386fec91e09607cf546ff73.tar.bz2 |
removed old rules
-rw-r--r-- | Source/cmExecutablesCommand.cxx | 35 | ||||
-rw-r--r-- | Source/cmExecutablesCommand.h | 71 |
2 files changed, 0 insertions, 106 deletions
diff --git a/Source/cmExecutablesCommand.cxx b/Source/cmExecutablesCommand.cxx deleted file mode 100644 index 748705d..0000000 --- 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<std::string>& args) -{ - if(args.size() < 1 ) - { - this->SetError("called with incorrect number of arguments"); - return false; - } - for(std::vector<std::string>::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 48b013f..0000000 --- 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<std::string>& 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 |