CMake/Source/cmSubdirCommand.h

59 lines
1.6 KiB
C
Raw Normal View History

/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2001-01-11 16:04:28 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2001-01-11 16:04:28 +03:00
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
2001-01-18 19:20:24 +03:00
#ifndef cmSubdirCommand_h
#define cmSubdirCommand_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
*/
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 InitialPass(std::vector<std::string> const& args,
cmExecutionStatus &status);
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
*/
2014-02-25 05:19:17 +04:00
virtual std::string GetName() const { return "subdirs";}
2001-01-11 16:04:28 +03:00
2006-09-01 17:51:28 +04:00
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() const
{
return true;
}
cmTypeMacro(cmSubdirCommand, cmCommand);
};
#endif