From 58143773fcf78a2c719d434b5623779d0b9b3a1f Mon Sep 17 00:00:00 2001 From: Jason vanRijn Kasper Date: Wed, 25 Jul 2007 21:12:40 +0000 Subject: - 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 --- modules/FindQt4.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules') 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 -# adaptor.{cpp,h} where basename is the basename of the xml file. +# adaptor.{cpp,h} where basename defaults to the basename of the xml file. +# If 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}") -- cgit v1.2.1