diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-01-14 15:41:27 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-01-14 15:41:27 +0100 |
commit | 50a228fc2d0250bcbbb35c676285831a0c35397e (patch) | |
tree | f03f6eaa2b345528c81dd851a8ca7cf990c37d77 /tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt | |
parent | b5fad55e8b099df4aa97a9a7b089882f56e42803 (diff) | |
download | tdelibs-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>
Diffstat (limited to 'tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt')
-rw-r--r-- | tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt | 9 |
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 |