summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt b/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt
index c420c5e75..db3beef98 100644
--- a/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt
+++ b/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt
@@ -32,13 +32,6 @@ function( add_dbus_xml option basename classname namespace xmlfile )
add_custom_command( OUTPUT ${basename}.cpp ${basename}.h
COMMAND ${DBUSXML2QT3_EXECUTABLE} -${option} ${basename} ${classname} -N ${namespace} ${INTROSPECTIONPATH}/${xmlfile} 2>/dev/null
DEPENDS ${INTROSPECTIONPATH}/${xmlfile} )
- if( "${option}" STREQUAL "p" )
- add_custom_command( OUTPUT ${basename}.moc
- COMMAND ${TMOC_EXECUTABLE} ${basename}.h -o ${basename}.moc
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${basename}.h )
- set_property( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${basename}.cpp APPEND
- PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${basename}.moc )
- endif( )
endfunction( )
add_dbus_xml( p networkmanagerproxy NetworkManagerProxy DBus nm-manager.xml )
@@ -61,7 +54,7 @@ add_dbus_xml( p connectionsettings ConnectionSettingsInterface DBus nm-settings-
# build the library
-tde_add_library( tdenm_dbus STATIC_PIC
+tde_add_library( tdenm_dbus STATIC_PIC AUTOMOC
SOURCES
networkmanagerproxy.cpp networkmanagerpppproxy.cpp
deviceproxy.cpp bluetoothproxy.cpp olpcmeshproxy.cpp ethernetproxy.cpp