1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmQTWrapCPPCommand.h,v $
6 Date: $Date: 2008-01-23 15:27:59 $
7 Version: $Revision: 1.15 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmQTWrapCPPCommand_h
18 #define cmQTWrapCPPCommand_h
20 #include "cmCommand.h"
22 #include "cmSourceFile.h"
24 /** \class cmQTWrapCPPCommand
25 * \brief Create moc file rules for QT classes
27 * cmQTWrapCPPCommand is used to create wrappers for QT classes into
30 class cmQTWrapCPPCommand
: public cmCommand
33 cmTypeMacro(cmQTWrapCPPCommand
, cmCommand
);
36 * This is a virtual constructor for the command.
38 virtual cmCommand
* Clone()
40 return new cmQTWrapCPPCommand
;
44 * This is called when the command is first encountered in
45 * the CMakeLists.txt file.
47 virtual bool InitialPass(std::vector
<std::string
> const& args
,
48 cmExecutionStatus
&status
);
51 * The name of the command as specified in CMakeList.txt.
53 virtual const char* GetName() { return "qt_wrap_cpp";}
56 * Succinct documentation.
58 virtual const char* GetTerseDocumentation()
60 return "Create Qt Wrappers.";
66 virtual const char* GetFullDocumentation()
69 " qt_wrap_cpp(resultingLibraryName DestName\n"
71 "Produce moc files for all the .h files listed in the SourceLists. "
72 "The moc files will be added to the library using the DestName "