From dd95fc292579fe9750284f24aeb44c7bbfee2c13 Mon Sep 17 00:00:00 2001 From: samelian Date: Wed, 11 May 2011 21:31:54 +0000 Subject: [PATCH] [kde-common/cmake] tde_uic: copy ui.h extension to binary dir git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1231438 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- cmake/modules/tde_uic.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/modules/tde_uic.cmake b/cmake/modules/tde_uic.cmake index a545828..78f7185 100644 --- a/cmake/modules/tde_uic.cmake +++ b/cmake/modules/tde_uic.cmake @@ -16,6 +16,12 @@ set( local_ui_file ${_ui_basename}.ui ) configure_file( ${UI_FILE} ${local_ui_file} COPYONLY ) execute_process( COMMAND tqt-replace ${local_ui_file} ) +# ui.h extension file, if exists +if( EXISTS "${UI_FILE}.h" ) + configure_file( ${UI_FILE}.h ${local_ui_file}.h COPYONLY ) + execute_process( COMMAND tqt-replace ${local_ui_file}.h ) +endif( ) + execute_process( COMMAND ${UIC_EXECUTABLE} -nounload -tr tr2i18n ${local_ui_file}