[kde-common/cmake] TDEMacros.cmake: added tde_moc macro

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1216495 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
pull/1/head
samelian 14 years ago
parent 28ba65c6d2
commit 2022a265ad

@ -218,6 +218,27 @@ macro( tde_add_ui_files _sources )
endmacro( tde_add_ui_files )
#################################################
#####
##### tde_moc
macro( tde_moc _sources )
foreach( _input_file ${ARGN} )
get_filename_component( _input_file "${_input_file}" ABSOLUTE )
get_filename_component( _basename ${_input_file} NAME_WE )
set( _output_file "${_basename}.moc.cpp" )
add_custom_command( OUTPUT ${_output_file}
COMMAND
${TQT_TMOC_EXECUTABLE} ${_input_file} -o ${_output_file}
DEPENDS
${_input_file} )
list( APPEND ${_sources} ${_output_file} )
endforeach( )
endmacro( )
#################################################
#####
##### tde_automoc

Loading…
Cancel
Save