From fae2d3add14c5d0dc6a7b16d079844ceab2e3dc5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 20 Jul 2023 18:31:05 +0900 Subject: Replace Q_OBJECT with TQ_OBJECT Signed-off-by: Michele Calgaro (cherry picked from commit abc07a72ce7dc957e365406877ac73e32241e688) --- qtinterface/interface_tqt3/tmoc.cmake | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'qtinterface/interface_tqt3') diff --git a/qtinterface/interface_tqt3/tmoc.cmake b/qtinterface/interface_tqt3/tmoc.cmake index dda16b4..62334ad 100755 --- a/qtinterface/interface_tqt3/tmoc.cmake +++ b/qtinterface/interface_tqt3/tmoc.cmake @@ -4,21 +4,16 @@ # Very simple moc wrapper, for using with cmake # -if [ -f @BIN_INSTALL_DIR@/tqt-replace-stream ]; then - if [ -z "$1" ]; then - echo "Usage: tmoc -o " - else - input_file="$1" - out_file="$3" - @BIN_INSTALL_DIR@/tqt-replace-stream "${input_file}" | \ - @MOC_EXECUTABLE@ | \ - sed "/#include / i\\ +if [ -z "$1" ]; then + echo "Usage: tmoc -o " +else + input_file="$1" + out_file="$3" + cat "${input_file}" | \ + @MOC_EXECUTABLE@ | \ + sed "/#include / i\\ #undef TQT_NO_COMPAT\\ #include \"${input_file}\"\\ " \ - > "${out_file}" - fi -else - echo "ERROR: @BIN_INSTALL_DIR@/tqt-replace-stream is not available. tmoc will fail!" - exit 1; + > "${out_file}" fi -- cgit v1.2.3