cmQTWrapCPPCommand.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 cmQTWrapCPPCommand_h
  4. #define cmQTWrapCPPCommand_h
  5. #include "cmCommand.h"
  6. #include "cmSourceFile.h"
  7. /** \class cmQTWrapCPPCommand
  8. * \brief Create moc file rules for Qt classes
  9. *
  10. * cmQTWrapCPPCommand is used to create wrappers for Qt classes into
  11. * normal C++
  12. */
  13. class cmQTWrapCPPCommand : public cmCommand
  14. {
  15. public:
  16. cmTypeMacro(cmQTWrapCPPCommand, cmCommand);
  17. /**
  18. * This is a virtual constructor for the command.
  19. */
  20. cmCommand* Clone() CM_OVERRIDE { return new cmQTWrapCPPCommand; }
  21. /**
  22. * This is called when the command is first encountered in
  23. * the CMakeLists.txt file.
  24. */
  25. bool InitialPass(std::vector<std::string> const& args,
  26. cmExecutionStatus& status) CM_OVERRIDE;
  27. /**
  28. * The name of the command as specified in CMakeList.txt.
  29. */
  30. std::string GetName() const CM_OVERRIDE { return "qt_wrap_cpp"; }
  31. };
  32. #endif