summaryrefslogtreecommitdiffstats
path: root/modules/tde_uic.cmake
diff options
context:
space:
mode:
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 9567afa..7114d20 100644
--- a/modules/tde_uic.cmake
+++ b/modules/tde_uic.cmake
@@ -58,4 +58,10 @@ if( _ui_cpp_content )
string( REGEX REPLACE ": TQWizard\\(" ": KWizard(" _ui_cpp_content "${_ui_cpp_content}" )
string( REGEX REPLACE ": QWizard\\(" ": KWizard(" _ui_cpp_content "${_ui_cpp_content}" )
file( WRITE ${_ui_basename}.cpp "#include <kdialog.h>\n#include <tdelocale.h>\n\n${_ui_cpp_content}" )
+
+ tde_execute_process( COMMAND ${MOC_EXECUTABLE}
+ ${_ui_basename}.h
+ OUTPUT_VARIABLE _ui_h_moc_content )
+ file( APPEND ${_ui_basename}.cpp "${_ui_h_moc_content}" )
+
endif( )