diff options
author | Alex Merry <kde@randomguy3.me.uk> | 2008-08-26 23:18:35 +0000 |
---|---|---|
committer | Alex Merry <kde@randomguy3.me.uk> | 2008-08-26 23:18:35 +0000 |
commit | d98faf5345e604b9e4631c8b2d6501c9bb06bdc2 (patch) | |
tree | 928d7bcfe67396039019c7e3036cc1e9b181061e | |
parent | 315b8d02548d83b37ce6f910e51aea8df2ef758f (diff) | |
download | extra-cmake-modules-d98faf5345e604b9e4631c8b2d6501c9bb06bdc2.tar.gz extra-cmake-modules-d98faf5345e604b9e4631c8b2d6501c9bb06bdc2.tar.bz2 |
Allow a classname to be specified for QT_ADD_DBUS_INTERFACE, and document the possibility for setting a header to include.
svn path=/trunk/KDE/kdelibs/; revision=852986
-rw-r--r-- | modules/FindQt4.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/FindQt4.cmake b/modules/FindQt4.cmake index fec95c6e..513b0cfe 100644 --- a/modules/FindQt4.cmake +++ b/modules/FindQt4.cmake @@ -85,6 +85,10 @@ # the list of sources. # To disable generating a namespace header, set the source file property # NO_NAMESPACE to TRUE on the interface file. +# To include a header in the interface header, set the source file property +# INCLUDE to the name of the header. +# To specify a class name to use, set the source file property CLASSNAME +# to the name of the class. # # macro QT4_ADD_DBUS_INTERFACES(outfiles inputfile ... ) # create the interface header and implementation files @@ -92,6 +96,10 @@ # the name will be automatically determined from the name of the xml file # To disable generating namespace headers, set the source file property # NO_NAMESPACE to TRUE for these inputfiles. +# To include a header in the interface header, set the source file property +# INCLUDE to the name of the header. +# To specify a class name to use, set the source file property CLASSNAME +# to the name of the class. # # macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname]) # create a dbus adaptor (header and implementation file) from the xml file @@ -1268,6 +1276,11 @@ IF (QT4_QMAKE_FOUND) SET(_params -m) ENDIF ( _nonamespace ) + GET_SOURCE_FILE_PROPERTY(_classname ${_interface} CLASSNAME) + IF ( _classname ) + SET(_params ${_params} -c ${_classname}) + ENDIF ( _classname ) + GET_SOURCE_FILE_PROPERTY(_include ${_interface} INCLUDE) IF ( _include ) SET(_params ${_params} -i ${_include}) |