summaryrefslogtreecommitdiffstats
path: root/modules/tde_uic.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-11 21:31:54 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-11 21:31:54 +0000
commit2354904fd256ac5da538c0b177a549b1c5ca40f5 (patch)
tree0e84ae7ec4ca066e5d22134e899d91bb0d3f894b /modules/tde_uic.cmake
parentb5c2dd898d7b3c436c4dbf614240409b24170900 (diff)
downloadtde-cmake-2354904fd256ac5da538c0b177a549b1c5ca40f5.tar.gz
tde-cmake-2354904fd256ac5da538c0b177a549b1c5ca40f5.zip
[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/cmake@1231438 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'modules/tde_uic.cmake')
-rw-r--r--modules/tde_uic.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/tde_uic.cmake b/modules/tde_uic.cmake
index a545828..78f7185 100644
--- a/modules/tde_uic.cmake
+++ b/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}