diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-20 00:07:09 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-20 00:07:09 +0000 |
commit | 972b980c05702226bb9da25a55d1ea9efe39c2c1 (patch) | |
tree | 7e1bdb0f16decc7e2715cdfae46946bfce824833 /cmake | |
parent | d40bdd8debc791b36872042f5ea98744eab71d30 (diff) | |
download | other-972b980c05702226bb9da25a55d1ea9efe39c2c1.tar.gz other-972b980c05702226bb9da25a55d1ea9efe39c2c1.zip |
[kde-common/cmake] tde_uic.cmake: copy .ui file locally and run tqt-replace before uic
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1215873 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/tde_uic.cmake | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/modules/tde_uic.cmake b/cmake/modules/tde_uic.cmake index 15e4709..9f04776 100644 --- a/cmake/modules/tde_uic.cmake +++ b/cmake/modules/tde_uic.cmake @@ -11,9 +11,14 @@ get_filename_component( _ui_basename ${UI_FILE} NAME_WE ) +# FIXME this will working only on out-of-source mode +set( local_ui_file ${_ui_basename}.ui ) +configure_file( ${UI_FILE} ${local_ui_file} COPYONLY ) +execute_process( COMMAND tqt-replace ${local_ui_file} ) + execute_process( COMMAND ${QT_UIC_EXECUTABLE} -nounload -tr tr2i18n - ${UI_FILE} + ${local_ui_file} OUTPUT_VARIABLE _ui_h_content ) if( _ui_h_content ) @@ -30,7 +35,7 @@ execute_process( COMMAND ${QT_UIC_EXECUTABLE} -nounload -tr tr2i18n ${L} -impl ${_ui_basename}.h - ${UI_FILE} + ${local_ui_file} OUTPUT_VARIABLE _ui_cpp_content ) if( _ui_cpp_content ) |