diff options
author | Laurent Montel <montel@kde.org> | 2007-09-24 06:23:52 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2007-09-24 06:23:52 +0000 |
commit | af86510dc0c1aabc1ab42ac98250812635e32323 (patch) | |
tree | 4a3477320bcb25d39e866aad4ae28d5a5e2129ce /modules/FindQt4.cmake | |
parent | fe55c51b9139309ce32ca18389c45279272a5d4a (diff) | |
download | extra-cmake-modules-af86510dc0c1aabc1ab42ac98250812635e32323.tar.gz extra-cmake-modules-af86510dc0c1aabc1ab42ac98250812635e32323.tar.bz2 |
Adapt CMakeLists.txt as discussed with Alex.
KDE4_ADD_TEST_EXECUTABLE is deprecated now use KDE4_ADD_EXECUTABLE(<target> TEST <files>) instead
QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE and QT4_ADD_DBUS_INTERFACES_NO_NAMESPACE are deprecated too
used SET_SOURCE_FILES_PROPERTIES(<files> PROPERTIES NO_NAMESPACE TRUE) QT4_ADD_DBUS_INTERFACES(<srcList> <files>)
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) is put in each CMakeLists.txt where
KDE4_ADD_EXECUTABLE(<target> TEST <files>) and KDE4_ADD_UNIT_TEST were used.
svn path=/trunk/KDE/kdelibs/; revision=716146
Diffstat (limited to 'modules/FindQt4.cmake')
-rw-r--r-- | modules/FindQt4.cmake | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/modules/FindQt4.cmake b/modules/FindQt4.cmake index fc58141c..2a52a5f0 100644 --- a/modules/FindQt4.cmake +++ b/modules/FindQt4.cmake @@ -37,22 +37,16 @@ # macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename) # create a the interface header and implementation files with the # given basename from the given interface xml file and add it to -# the list of sources +# the list of sources. +# To disable generating a namespace header, set the source file property +# NO_NAMESPACE to TRUE on the interface file. # # macro QT4_ADD_DBUS_INTERFACES(outfiles inputfile ... ) # create the interface header and implementation files # for all listed interface xml files # the name will be automatically determined from the name of the xml file -# -# macro QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE(outfiles interface basename) -# create a the interface without namespace header and implementation files with the -# given basename from the given interface xml file and add it to -# the list of sources -# -# macro QT4_ADD_DBUS_INTERFACES_NO_NAMESPACE(outfiles inputfile ... ) -# create the interface header without namespace and implementation files -# for all listed interface xml files -# 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. # # macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname]) # create a dbus adaptor (header and implementation file) from the xml file @@ -1042,11 +1036,6 @@ IF (QT4_QMAKE_FOUND) ENDMACRO(QT4_ADD_DBUS_INTERFACE) - MACRO(QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE _sources _interface _basename) - SET_SOURCE_FILES_PROPERTIES(${_interface} PROPERTIES NO_NAMESPACE TRUE) - QT4_ADD_DBUS_INTERFACE(${_sources} ${_interface} ${_basename}) - ENDMACRO(QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE) - MACRO(QT4_ADD_DBUS_INTERFACES _sources) FOREACH (_current_FILE ${ARGN}) GET_FILENAME_COMPONENT(_infile ${_current_FILE} ABSOLUTE) @@ -1057,9 +1046,16 @@ IF (QT4_QMAKE_FOUND) ENDFOREACH (_current_FILE) ENDMACRO(QT4_ADD_DBUS_INTERFACES) + MACRO(QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE _sources _interface _basename) + MESSAGE(SEND_ERROR "QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE() is deprecated. Use the following instead: +SET_SOURCE_FILES_PROPERTIES(<interface> PROPERTIES NO_NAMESPACE TRUE) +QT4_ADD_DBUS_INTERFACE(<srcList> <interface> <basename>)\n") + ENDMACRO(QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE) + MACRO(QT4_ADD_DBUS_INTERFACES_NO_NAMESPACE _sources) - SET_SOURCE_FILES_PROPERTIES(${ARGN} PROPERTIES NO_NAMESPACE TRUE) - QT4_ADD_DBUS_INTERFACES(${_sources} ${ARGN}) + MESSAGE(SEND_ERROR "QT4_ADD_DBUS_INTERFACES_NO_NAMESPACE() is deprecated. Use the following instead: +SET_SOURCE_FILES_PROPERTIES(<files> PROPERTIES NO_NAMESPACE TRUE) +QT4_ADD_DBUS_INTERFACES(<srcList> <files>)\n") ENDMACRO(QT4_ADD_DBUS_INTERFACES_NO_NAMESPACE) MACRO(QT4_GENERATE_DBUS_INTERFACE _header) # _customName ) |