summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-01-14 15:41:27 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-01-14 15:41:27 +0100
commit50a228fc2d0250bcbbb35c676285831a0c35397e (patch)
treef03f6eaa2b345528c81dd851a8ca7cf990c37d77
parentb5fad55e8b099df4aa97a9a7b089882f56e42803 (diff)
downloadtdelibs-50a228fc2d0250bcbbb35c676285831a0c35397e.tar.gz
tdelibs-50a228fc2d0250bcbbb35c676285831a0c35397e.zip
Use AUTOMOC for generated sources instead of a specific rule.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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