1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #ifndef cmQTWrapCPPCommand_h
13 #define cmQTWrapCPPCommand_h
15 #include "cmCommand.h"
17 #include "cmSourceFile.h"
19 /** \class cmQTWrapCPPCommand
20 * \brief Create moc file rules for Qt classes
22 * cmQTWrapCPPCommand is used to create wrappers for Qt classes into
25 class cmQTWrapCPPCommand : public cmCommand
28 cmTypeMacro(cmQTWrapCPPCommand, cmCommand);
31 * This is a virtual constructor for the command.
33 virtual cmCommand* Clone()
35 return new cmQTWrapCPPCommand;
39 * This is called when the command is first encountered in
40 * the CMakeLists.txt file.
42 virtual bool InitialPass(std::vector<std::string> const& args,
43 cmExecutionStatus &status);
46 * The name of the command as specified in CMakeList.txt.
48 virtual const char* GetName() const { return "qt_wrap_cpp";}
51 * Succinct documentation.
53 virtual const char* GetTerseDocumentation() const
55 return "Create Qt Wrappers.";
61 virtual const char* GetFullDocumentation() const
64 " qt_wrap_cpp(resultingLibraryName DestName\n"
66 "Produce moc files for all the .h files listed in the SourceLists. "
67 "The moc files will be added to the library using the DestName "