STYLE: Nightly Date Stamp
[cmake.git] / Source / cmQTWrapCPPCommand.h
blob6a886e4c0f2898b318c3094176a8651ccb3e589c
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmQTWrapCPPCommand.h,v $
5 Language: C++
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
28 * normal C++
30 class cmQTWrapCPPCommand : public cmCommand
32 public:
33 cmTypeMacro(cmQTWrapCPPCommand, cmCommand);
35 /**
36 * This is a virtual constructor for the command.
38 virtual cmCommand* Clone()
40 return new cmQTWrapCPPCommand;
43 /**
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);
50 /**
51 * The name of the command as specified in CMakeList.txt.
53 virtual const char* GetName() { return "qt_wrap_cpp";}
55 /**
56 * Succinct documentation.
58 virtual const char* GetTerseDocumentation()
60 return "Create Qt Wrappers.";
63 /**
64 * More documentation.
66 virtual const char* GetFullDocumentation()
68 return
69 " qt_wrap_cpp(resultingLibraryName DestName\n"
70 " SourceLists ...)\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 "
73 "source list.";
79 #endif