cmAddCustomTargetCommand.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 cmAddCustomTargetCommand_h
  4. #define cmAddCustomTargetCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. class cmExecutionStatus;
  10. /** \class cmAddCustomTargetCommand
  11. * \brief Command that adds a target to the build system.
  12. *
  13. * cmAddCustomTargetCommand adds an extra target to the build system.
  14. * This is useful when you would like to add special
  15. * targets like "install,", "clean," and so on.
  16. */
  17. class cmAddCustomTargetCommand : public cmCommand
  18. {
  19. public:
  20. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. cmCommand* Clone() override { return new cmAddCustomTargetCommand; }
  24. /**
  25. * This is called when the command is first encountered in
  26. * the CMakeLists.txt file.
  27. */
  28. bool InitialPass(std::vector<std::string> const& args,
  29. cmExecutionStatus& status) override;
  30. };
  31. #endif