diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-23 18:35:13 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-23 18:35:13 +0000 |
commit | 45082122fccb42c31ae28f6b41e0ac51099d499b (patch) | |
tree | 107ced6e4d41f0027bdfc0af8c14897246926245 /cmake/modules/TDEMacros.cmake | |
parent | e7fa6291925bfeee1222e2576e40024f9dbf9943 (diff) | |
download | other-45082122fccb42c31ae28f6b41e0ac51099d499b.tar.gz other-45082122fccb42c31ae28f6b41e0ac51099d499b.zip |
[kde-common/cmake] TDEMacros.cmake: added tde_moc macro
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1216495 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cmake/modules/TDEMacros.cmake')
-rw-r--r-- | cmake/modules/TDEMacros.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/modules/TDEMacros.cmake b/cmake/modules/TDEMacros.cmake index 6a8a669..46d3824 100644 --- a/cmake/modules/TDEMacros.cmake +++ b/cmake/modules/TDEMacros.cmake @@ -220,6 +220,27 @@ 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 macro( tde_automoc ) |