On Friday 10 September 2010 15:02:08 Serghei Amelian wrote:
[...]
While it may
be possible, I wouldn't advise it as moc is a core Qt tool
which will change from release to release. The TQT system is supposed to
sit in between the Qt public API and the Trinity codebase, not modify
existing Qt libraries or binaries.
I see. In this case we need a little better wrapper over moc. Right now the
problem is that cmake macros must be hacked for using moc-tqt and I want to
avoid this.
For moment I using a very simple script, like this:
if [ -z "$1" ]; then
echo "Usage: tmoc <input_file> [args]"
else
input_file="$1"
shift
@TQT_REPLACE_STREAM@ "${input_file}" | @QT_MOC_EXECUTABLE@ $@
fi
--
Serghei