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 cmQTWrapUICommand_h
13 #define cmQTWrapUICommand_h
15 #include "cmCommand.h"
17 #include "cmSourceFile.h"
19 /** \class cmQTWrapUICommand
20 * \brief Create .h and .cxx files rules for Qt user interfaces files
22 * cmQTWrapUICommand is used to create wrappers for Qt classes into normal C++
24 class cmQTWrapUICommand : public cmCommand
27 cmTypeMacro(cmQTWrapUICommand, cmCommand);
29 * This is a virtual constructor for the command.
31 virtual cmCommand* Clone()
33 return new cmQTWrapUICommand;
37 * This is called when the command is first encountered in
38 * the CMakeLists.txt file.
40 virtual bool InitialPass(std::vector<std::string> const& args,
41 cmExecutionStatus &status);
44 * The name of the command as specified in CMakeList.txt.
46 virtual const char* GetName() const { return "qt_wrap_ui";}
49 * Succinct documentation.
51 virtual const char* GetTerseDocumentation() const
53 return "Create Qt user interfaces Wrappers.";
59 virtual const char* GetFullDocumentation() const
62 " qt_wrap_ui(resultingLibraryName HeadersDestName\n"
63 " SourcesDestName SourceLists ...)\n"
64 "Produce .h and .cxx files for all the .ui files listed "
65 "in the SourceLists. "
66 "The .h files will be added to the library using the HeadersDestName"
68 "The .cxx files will be added to the library using the SourcesDestName"