2001-01-10 17:13:32 -05:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
=========================================================================*/
|
2001-01-18 11:20:24 -05:00
|
|
|
#ifndef cmAuxSourceDirectoryCommand_h
|
|
|
|
#define cmAuxSourceDirectoryCommand_h
|
2001-01-05 11:41:20 -05:00
|
|
|
|
|
|
|
#include "cmStandardIncludes.h"
|
2001-01-18 11:20:24 -05:00
|
|
|
#include "cmCommand.h"
|
2001-01-05 11:41:20 -05:00
|
|
|
|
2001-01-18 11:20:24 -05:00
|
|
|
/** \class cmAuxSourceDirectoryCommand
|
2001-01-10 17:13:32 -05:00
|
|
|
* \brief Specify auxiliary source code directories.
|
|
|
|
*
|
2001-01-18 11:20:24 -05:00
|
|
|
* cmAuxSourceDirectoryCommand specifies source code directories
|
2001-01-10 17:13:32 -05:00
|
|
|
* that must be built as part of this build process. This directories
|
2001-01-18 11:20:24 -05:00
|
|
|
* are not recursively processed like the SUBDIR command (cmSubdirCommand).
|
|
|
|
* A side effect of this command is to create a subdirectory in the build
|
2001-01-10 17:13:32 -05:00
|
|
|
* directory structure.
|
|
|
|
*/
|
2001-01-18 11:20:24 -05:00
|
|
|
class cmAuxSourceDirectoryCommand : public cmCommand
|
2001-01-05 11:41:20 -05:00
|
|
|
{
|
|
|
|
public:
|
2001-01-10 17:13:32 -05:00
|
|
|
/**
|
2001-01-18 11:20:24 -05:00
|
|
|
* This is a virtual constructor for the command.
|
2001-01-10 17:13:32 -05:00
|
|
|
*/
|
2001-01-18 11:20:24 -05:00
|
|
|
virtual cmCommand* Clone()
|
2001-01-05 11:41:20 -05:00
|
|
|
{
|
2001-01-18 11:20:24 -05:00
|
|
|
return new cmAuxSourceDirectoryCommand;
|
2001-01-05 11:41:20 -05:00
|
|
|
}
|
2001-01-10 17:13:32 -05:00
|
|
|
|
|
|
|
/**
|
2001-01-18 11:20:24 -05:00
|
|
|
* This is called when the command is first encountered in
|
2001-01-10 17:13:32 -05:00
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
2001-01-05 11:41:20 -05:00
|
|
|
virtual bool Invoke(std::vector<std::string>& args);
|
2001-01-10 17:13:32 -05:00
|
|
|
|
|
|
|
/**
|
2001-01-18 11:20:24 -05:00
|
|
|
* The name of the command as specified in CMakeList.txt.
|
2001-01-10 17:13:32 -05:00
|
|
|
*/
|
2001-01-05 11:41:20 -05:00
|
|
|
virtual const char* GetName() { return "AUX_SOURCE_DIRECTORY";}
|
2001-01-10 17:13:32 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Succinct documentation.
|
|
|
|
*/
|
2001-01-12 14:35:15 -05:00
|
|
|
virtual const char* GetTerseDocumentation()
|
2001-01-05 11:41:20 -05:00
|
|
|
{
|
2001-01-12 13:07:20 -05:00
|
|
|
return "Add all the source files found in the specified\n"
|
2001-04-11 14:59:02 -04:00
|
|
|
"directory to the build as source list NAME.";
|
2001-01-05 11:41:20 -05:00
|
|
|
}
|
|
|
|
|
2001-01-10 17:13:32 -05:00
|
|
|
/**
|
|
|
|
* More documentation.
|
|
|
|
*/
|
2001-01-12 14:35:15 -05:00
|
|
|
virtual const char* GetFullDocumentation()
|
2001-01-05 11:41:20 -05:00
|
|
|
{
|
2001-01-10 17:13:32 -05:00
|
|
|
return
|
2001-04-11 14:59:02 -04:00
|
|
|
"AUX_SOURCE_DIRECTORY(dir srcListName)";
|
2001-01-05 11:41:20 -05:00
|
|
|
}
|
2001-02-26 12:07:53 -05:00
|
|
|
|
|
|
|
cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);
|
2001-01-05 11:41:20 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|