CMake/Source/cmSubdirCommand.h

77 lines
1.8 KiB
C
Raw Normal View History

2001-01-11 16:04:28 +03: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 19:20:24 +03:00
#ifndef cmSubdirCommand_h
#define cmSubdirCommand_h
#include "cmStandardIncludes.h"
2001-01-18 19:20:24 +03:00
#include "cmCommand.h"
2001-01-18 19:20:24 +03:00
/** \class cmSubdirCommand
2001-01-11 16:04:28 +03:00
* \brief Specify a list of subdirectories to build.
*
2001-01-18 19:20:24 +03:00
* cmSubdirCommand specifies a list of subdirectories to process
2001-01-11 16:04:28 +03:00
* by CMake. For each subdirectory listed, CMake will descend
* into that subdirectory and process any CMakeLists.txt found.
*/
2001-01-18 19:20:24 +03:00
class cmSubdirCommand : public cmCommand
{
public:
2001-01-11 16:04:28 +03:00
/**
2001-01-18 19:20:24 +03:00
* This is a virtual constructor for the command.
2001-01-11 16:04:28 +03:00
*/
2001-01-18 19:20:24 +03:00
virtual cmCommand* Clone()
{
2001-01-18 19:20:24 +03:00
return new cmSubdirCommand;
}
2001-01-11 16:04:28 +03:00
/**
2001-01-18 19:20:24 +03:00
* This is called when the command is first encountered in
2001-01-11 16:04:28 +03:00
* the CMakeLists.txt file.
*/
virtual bool Invoke(std::vector<std::string>& args);
2001-01-11 16:04:28 +03:00
/**
2001-01-18 19:20:24 +03:00
* The name of the command as specified in CMakeList.txt.
2001-01-11 16:04:28 +03:00
*/
virtual const char* GetName() { return "SUBDIRS";}
2001-01-11 16:04:28 +03:00
/**
* Succinct documentation.
*/
2001-01-12 22:35:15 +03:00
virtual const char* GetTerseDocumentation()
{
2001-01-11 16:04:28 +03:00
return "Add a list of subdirectories to the build.";
}
2001-01-11 16:04:28 +03:00
/**
* More documentation.
*/
2001-01-12 22:35:15 +03:00
virtual const char* GetFullDocumentation()
{
2001-01-11 16:04:28 +03:00
return
"SUBDIRS(dir1 dir2 ...)\n"
2001-01-12 21:07:20 +03:00
"Add a list of subdirectories to the build.\n"
2001-01-11 16:04:28 +03:00
"This will cause any CMakeLists.txt files in the sub directories\n"
"to be processed by CMake.";
}
cmTypeMacro(cmSubdirCommand, cmCommand);
};
#endif