#!/bin/bash # # Very simple moc wrapper, for using with cmake # if [ -z "$1" ]; then echo "Usage: tmoc -o " else input_file="$1" out_file="$3" @BIN_INSTALL_DIR@/tqt-replace-stream "${input_file}" | \ @QT_MOC_EXECUTABLE@ | \ sed "/#include / i #undef QT_NO_COMPAT\n#include \"${input_file}\"" \ > "${out_file}" fi