cmCommand refactor: cmIncludeCommand

This commit is contained in:
Gabor Bencze
2019-08-02 18:31:47 +02:00
committed by Brad King
parent fb57537a83
commit f42dad7a5e
3 changed files with 29 additions and 48 deletions

View File

@@ -8,35 +8,15 @@
#include <string>
#include <vector>
#include "cm_memory.hxx"
#include "cmCommand.h"
class cmExecutionStatus;
/** \class cmIncludeCommand
/**
* \brief cmIncludeCommand defines a list of distant
* files that can be "included" in the current list file.
* In almost every sense, this is identical to a C/C++
* #include command. Arguments are first expended as usual.
*/
class cmIncludeCommand : public cmCommand
{
public:
/**
* This is a virtual constructor for the command.
*/
std::unique_ptr<cmCommand> Clone() override
{
return cm::make_unique<cmIncludeCommand>();
}
/**
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status) override;
};
bool cmIncludeCommand(std::vector<std::string> const& args,
cmExecutionStatus& status);
#endif