diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-04-01 21:59:21 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-04-01 21:59:21 (GMT) |
commit | 3e572f9bab6f0cdf3312b8192c20c03582915840 (patch) | |
tree | 54f161d66644291e781669989acbfbf7c6ae4e4a /Modules | |
parent | 38a99f54e3232fdb00cd7ffdd675f9fd4f4a5af6 (diff) | |
download | CMake-3e572f9bab6f0cdf3312b8192c20c03582915840.zip CMake-3e572f9bab6f0cdf3312b8192c20c03582915840.tar.gz CMake-3e572f9bab6f0cdf3312b8192c20c03582915840.tar.bz2 |
STYLE: add documentation for QT4_CREATE_MOC and QT4_AUTOMOC (#6687)
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindQt4.cmake | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 62fce09..7230ace 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -61,8 +61,23 @@ # Options may be given to rcc, such as those found # when executing "rcc -help" # -# macro QT4_AUTOMOC(inputfile ... ) # 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) # create a the interface header and implementation files with the @@ -1182,7 +1197,7 @@ IF (QT4_QMAKE_FOUND) 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: + # 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 # cmake is run for the very first time on them -> however the .cpp files might |