From fba175e1f902681b279b8a6895a787cd1a015e07 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 11 Aug 2013 02:38:50 +0400 Subject: Change cmake to use general tde_moc macro rather than another reinventted wheel --- .../dbus-introspection/CMakeLists.txt | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'tdecore') diff --git a/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt b/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt index 144d56569..8efdd6031 100644 --- a/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt +++ b/tdecore/tdehw/networkbackends/network-manager/dbus-introspection/CMakeLists.txt @@ -59,24 +59,9 @@ set( MOCHEADERS accesspointproxy.h deviceproxy.h networkmanagerproxy.h networkma networkmanagersettings.h connectionsettings.h ) foreach( _header_file ${MOCHEADERS} ) - get_filename_component( _basename "${_header_file}" NAME_WE ) - set( _moc_file ${_basename}.moc ) - list( APPEND _moc_files ${_moc_file} ) - add_custom_command( OUTPUT ${_moc_file} - COMMAND ${TMOC_EXECUTABLE} ${_header_file} -o ${_moc_file} - DEPENDS ${_header_file} ) + tde_moc( MOCSOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_header_file} ) endforeach( ) -add_custom_command( OUTPUT mocfiles.cpp - COMMAND cat ${_moc_files} > mocfiles.cpp - DEPENDS ${_moc_files} ) - -# tde_automoc( accesspointproxy.h deviceproxy.h networkmanagerproxy.h -# networkmanagerpppproxy.h bluetoothproxy.h olpcmeshproxy.h -# ethernetproxy.h infinibandproxy.h wifiproxy.h wimaxproxy.h -# activeconnectionproxy.h vpnconnectionproxy.h vpnpluginproxy.h -# modemproxy.h networkmanagersettings.h connectionsettings.h ) - # build the library tde_add_library( tdenm_dbus STATIC_PIC @@ -85,6 +70,6 @@ tde_add_library( tdenm_dbus STATIC_PIC deviceproxy.cpp bluetoothproxy.cpp olpcmeshproxy.cpp ethernetproxy.cpp infinibandproxy.cpp wifiproxy.cpp wimaxproxy.cpp accesspointproxy.cpp networkmanagersettings.cpp connectionsettings.cpp - mocfiles.cpp activeconnectionproxy.cpp vpnconnectionproxy.cpp - vpnpluginproxy.cpp modemproxy.cpp + activeconnectionproxy.cpp vpnconnectionproxy.cpp + vpnpluginproxy.cpp modemproxy.cpp ${MOCSOURCES} ) -- cgit v1.2.1