Use AUTOMOC for generated sources instead of a specific rule.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/147/head
Slávek Banko 3 years ago
parent b5fad55e8b
commit 50a228fc2d
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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

Loading…
Cancel
Save