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 cmFLTKWrapUICommand_h
13 #define cmFLTKWrapUICommand_h
15 #include "cmCommand.h"
17 /** \class cmFLTKWrapUICommand
18 * \brief Create .h and .cxx files rules for FLTK user interfaces files
20 * cmFLTKWrapUICommand is used to create wrappers for FLTK classes into
23 class cmFLTKWrapUICommand : public cmCommand
26 cmTypeMacro(cmFLTKWrapUICommand, cmCommand);
29 * This is a virtual constructor for the command.
31 virtual cmCommand* Clone()
33 return new cmFLTKWrapUICommand;
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 * This is called at the end after all the information
45 * specified by the command is accumulated. Most commands do
46 * not implement this method. At this point, reading and
47 * writing to the cache can be done.
49 virtual void FinalPass();
50 virtual bool HasFinalPass() const { return true; }
53 * The name of the command as specified in CMakeList.txt.
55 virtual const char* GetName() const { return "fltk_wrap_ui";}
58 * Succinct documentation.
60 virtual const char* GetTerseDocumentation() const
62 return "Create FLTK user interfaces Wrappers.";
68 virtual const char* GetFullDocumentation() const
71 " fltk_wrap_ui(resultingLibraryName source1\n"
72 " source2 ... sourceN )\n"
73 "Produce .h and .cxx files for all the .fl and .fld files listed. "
74 "The resulting .h and .cxx files will be added to a variable named "
75 "resultingLibraryName_FLTK_UI_SRCS which should be added to your "
81 * List of produced files.
83 std::vector<cmSourceFile *> GeneratedSourcesClasses;
86 * List of Fluid files that provide the source
87 * generating .cxx and .h files