diff options
author | Jason vanRijn Kasper <vr@movingparts.net> | 2007-07-25 21:12:40 +0000 |
---|---|---|
committer | Jason vanRijn Kasper <vr@movingparts.net> | 2007-07-25 21:12:40 +0000 |
commit | 58143773fcf78a2c719d434b5623779d0b9b3a1f (patch) | |
tree | ae8b0ce6d45c579ab9411ef5ad4e9578652965ac | |
parent | 3d129ea54f483730f508125fd8fa7cccab2fbdfb (diff) | |
download | extra-cmake-modules-58143773fcf78a2c719d434b5623779d0b9b3a1f.tar.gz extra-cmake-modules-58143773fcf78a2c719d434b5623779d0b9b3a1f.tar.bz2 |
- okayed by thiago
- commenting the fact that QT4_ADD_DBUS_ADAPTOR actually has 6 parameters.
the 5th and 6th are optional and allow for configuring the basename and
classname of the generated adaptor classes.
svn path=/trunk/KDE/kdelibs/; revision=692557
-rw-r--r-- | modules/FindQt4.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/FindQt4.cmake b/modules/FindQt4.cmake index e1642404..ae757c17 100644 --- a/modules/FindQt4.cmake +++ b/modules/FindQt4.cmake @@ -53,12 +53,14 @@ # for all listed interface xml files # the name will be automatically determined from the name of the xml file # -# macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] ) +# macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname]) # create a dbus adaptor (header and implementation file) from the xml file # describing the interface, and add it to the list of sources. The adaptor # forwards the calls to a parent class, defined in parentheader and named # parentclassname. The name of the generated files will be -# <basename>adaptor.{cpp,h} where basename is the basename of the xml file. +# <basename>adaptor.{cpp,h} where basename defaults to the basename of the xml file. +# If <classname> is provided, then it will be used as the classname of the +# adaptor itself. # # macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] ) # generate the xml interface file from the given header. @@ -1064,7 +1066,7 @@ IF (QT4_QMAKE_FOUND) ENDMACRO(QT4_GENERATE_DBUS_INTERFACE) - MACRO(QT4_ADD_DBUS_ADAPTOR _sources _xml_file _include _parentClass) # _optionalBasename ) + MACRO(QT4_ADD_DBUS_ADAPTOR _sources _xml_file _include _parentClass) # _optionalBasename _optionalClassName) GET_FILENAME_COMPONENT(_infile ${_xml_file} ABSOLUTE) SET(_optionalBasename "${ARGV4}") |