summaryrefslogtreecommitdiffstats
path: root/qtinterface/interface_tqt3/tmoc.cmake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-20 18:31:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-20 18:31:05 +0900
commitabc07a72ce7dc957e365406877ac73e32241e688 (patch)
treef61a8e8751716ca22e61c7f967f2b2ca79fb3948 /qtinterface/interface_tqt3/tmoc.cmake
parentd6c39b276a69b1bdfff98d93c8b11ae86dc8d1e1 (diff)
downloadtqtinterface-abc07a72ce7dc957e365406877ac73e32241e688.tar.gz
tqtinterface-abc07a72ce7dc957e365406877ac73e32241e688.zip
Replace Q_OBJECT with TQ_OBJECT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'qtinterface/interface_tqt3/tmoc.cmake')
-rwxr-xr-xqtinterface/interface_tqt3/tmoc.cmake23
1 files changed, 9 insertions, 14 deletions
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 <input_file> -o <out_file>"
- else
- input_file="$1"
- out_file="$3"
- @BIN_INSTALL_DIR@/tqt-replace-stream "${input_file}" | \
- @MOC_EXECUTABLE@ | \
- sed "/#include <ntqmetaobject.h>/ i\\
+if [ -z "$1" ]; then
+ echo "Usage: tmoc <input_file> -o <out_file>"
+else
+ input_file="$1"
+ out_file="$3"
+ cat "${input_file}" | \
+ @MOC_EXECUTABLE@ | \
+ sed "/#include <ntqmetaobject.h>/ 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