cmExecuteProcessCommand.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 cmExecuteProcessCommand_h
  4. #define cmExecuteProcessCommand_h
  5. #include "cmCommand.h"
  6. /** \class cmExecuteProcessCommand
  7. * \brief Command that adds a target to the build system.
  8. *
  9. * cmExecuteProcessCommand is a CMake language interface to the KWSys
  10. * Process Execution implementation.
  11. */
  12. class cmExecuteProcessCommand : public cmCommand
  13. {
  14. public:
  15. /**
  16. * This is a virtual constructor for the command.
  17. */
  18. cmCommand* Clone() CM_OVERRIDE { return new cmExecuteProcessCommand; }
  19. /**
  20. * This is called when the command is first encountered in
  21. * the CMakeLists.txt file.
  22. */
  23. bool InitialPass(std::vector<std::string> const& args,
  24. cmExecutionStatus& status) CM_OVERRIDE;
  25. /**
  26. * The name of the command as specified in CMakeList.txt.
  27. */
  28. std::string GetName() const CM_OVERRIDE { return "execute_process"; }
  29. /**
  30. * This determines if the command is invoked when in script mode.
  31. */
  32. bool IsScriptable() const CM_OVERRIDE { return true; }
  33. cmTypeMacro(cmExecuteProcessCommand, cmCommand);
  34. };
  35. #endif