[Cmake-commits] [cmake-commits] alex committed FindQt4.cmake 1.111 1.112
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Apr 1 17:59:23 EDT 2008
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv29820
Modified Files:
FindQt4.cmake
Log Message:
STYLE: add documentation for QT4_CREATE_MOC and QT4_AUTOMOC (#6687)
Alex
Index: FindQt4.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindQt4.cmake,v
retrieving revision 1.111
retrieving revision 1.112
diff -C 2 -d -r1.111 -r1.112
*** FindQt4.cmake 27 Mar 2008 19:18:35 -0000 1.111
--- FindQt4.cmake 1 Apr 2008 21:59:21 -0000 1.112
***************
*** 62,67 ****
# when executing "rcc -help"
#
- # macro QT4_AUTOMOC(inputfile ... )
# macro QT4_GENERATE_MOC(inputfile outputfile )
#
# macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)
--- 62,82 ----
# when executing "rcc -help"
#
# macro QT4_GENERATE_MOC(inputfile outputfile )
+ # creates a rule to run moc on infile and create outfile.
+ # Use this if for some reason QT4_WRAP_CPP() isn't appropriate, e.g.
+ # because you need a custom filename for the moc file or something similar.
+ #
+ # macro QT4_AUTOMOC(sourcefile1 sourcefile2 ... )
+ # This macro is still experimental.
+ # It can be used to have moc automatically handled.
+ # So if you have the files foo.h and foo.cpp, and in foo.h a
+ # a class uses the Q_OBJECT macro, moc has to run on it. If you don't
+ # want to use QT4_WRAP_CPP() (which is reliable and mature), you can insert
+ # #include "foo.moc"
+ # in foo.cpp and then give foo.cpp as argument to QT4_AUTOMOC(). This will the
+ # scan all listed files at cmake-time for such included moc files and if it finds
+ # them cause a rule to be generated to run moc at build time on the
+ # accompanying header file foo.h.
+ # If a source file has the SKIP_AUTOMOC property set it will be ignored by this macro.
#
# macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)
***************
*** 1183,1187 ****
GET_FILENAME_COMPONENT(_abs_FILE ${_current_FILE} ABSOLUTE)
# if "SKIP_AUTOMOC" is set to true, we will not handle this file here.
! # here. this is required to make bouic work correctly:
# we need to add generated .cpp files to the sources (to compile them),
# but we cannot let automoc handle them, as the .cpp files don't exist yet when
--- 1198,1202 ----
GET_FILENAME_COMPONENT(_abs_FILE ${_current_FILE} ABSOLUTE)
# if "SKIP_AUTOMOC" is set to true, we will not handle this file here.
! # This is required to make uic work correctly:
# we need to add generated .cpp files to the sources (to compile them),
# but we cannot let automoc handle them, as the .cpp files don't exist yet when
More information about the Cmake-commits
mailing list