cmMakeDirectoryCommand.h 1.2 KB
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4
#ifndef cmMakeDirectoryCommand_h
#define cmMakeDirectoryCommand_h
5

6
#include "cmConfigure.h" // IWYU pragma: keep
7

8 9 10
#include <string>
#include <vector>

11 12
#include "cm_memory.hxx"

13 14
#include "cmCommand.h"

15 16
class cmExecutionStatus;

17 18
/** \class cmMakeDirectoryCommand
 * \brief Specify auxiliary source code directories.
19
 *
20 21 22 23 24
 * cmMakeDirectoryCommand specifies source code directories
 * that must be built as part of this build process. This directories
 * are not recursively processed like the SUBDIR command (cmSubdirCommand).
 * A side effect of this command is to create a subdirectory in the build
 * directory structure.
25
 */
26
class cmMakeDirectoryCommand : public cmCommand
27 28 29 30 31
{
public:
  /**
   * This is a virtual constructor for the command.
   */
32 33 34 35
  std::unique_ptr<cmCommand> Clone() override
  {
    return cm::make_unique<cmMakeDirectoryCommand>();
  }
36 37 38 39 40

  /**
   * This is called when the command is first encountered in
   * the CMakeLists.txt file.
   */
41
  bool InitialPass(std::vector<std::string> const& args,
42
                   cmExecutionStatus& status) override;
43 44 45
};

#endif