cmMakeDirectoryCommand.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmMakeDirectoryCommand_h
  4. #define cmMakeDirectoryCommand_h
  5. #include "cmConfigure.h"
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. class cmExecutionStatus;
  10. /** \class cmMakeDirectoryCommand
  11. * \brief Specify auxiliary source code directories.
  12. *
  13. * cmMakeDirectoryCommand specifies source code directories
  14. * that must be built as part of this build process. This directories
  15. * are not recursively processed like the SUBDIR command (cmSubdirCommand).
  16. * A side effect of this command is to create a subdirectory in the build
  17. * directory structure.
  18. */
  19. class cmMakeDirectoryCommand : public cmCommand
  20. {
  21. public:
  22. /**
  23. * This is a virtual constructor for the command.
  24. */
  25. cmCommand* Clone() CM_OVERRIDE { return new cmMakeDirectoryCommand; }
  26. /**
  27. * This is called when the command is first encountered in
  28. * the CMakeLists.txt file.
  29. */
  30. bool InitialPass(std::vector<std::string> const& args,
  31. cmExecutionStatus& status) CM_OVERRIDE;
  32. /**
  33. * The name of the command as specified in CMakeList.txt.
  34. */
  35. std::string GetName() const CM_OVERRIDE { return "make_directory"; }
  36. };
  37. #endif