diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-04 20:41:08 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-04 20:41:08 +0000 |
commit | 20ec2740a5e6c2ef3eeea48ef8140aea26fb8beb (patch) | |
tree | f525728c6c0a224690bd87f94cb270a2e1bd84b6 /qtinterface/tmoc.cmake | |
parent | e5e5db14bf9a12b17fefe650fface82bb250aaec (diff) | |
download | tqtinterface-20ec2740a5e6c2ef3eeea48ef8140aea26fb8beb.tar.gz tqtinterface-20ec2740a5e6c2ef3eeea48ef8140aea26fb8beb.zip |
[dependencies/tqtinterface] added initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1182534 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tmoc.cmake')
-rwxr-xr-x | qtinterface/tmoc.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qtinterface/tmoc.cmake b/qtinterface/tmoc.cmake new file mode 100755 index 0000000..7745e22 --- /dev/null +++ b/qtinterface/tmoc.cmake @@ -0,0 +1,16 @@ +#!/bin/bash + +# +# Very simple moc wrapper, for using with cmake +# + +if [ -z "$1" ]; then + echo "Usage: tmoc <input_file> -o <out_file>" +else + input_file="$1" + out_file="$3" + @CMAKE_INSTALL_PREFIX@/@BIN_INSTALL_DIR@/tqt-replace-stream "${input_file}" | \ + @QT_MOC_EXECUTABLE@ | \ + sed "/#include <qmetaobject.h>/ i #undef QT_NO_COMPAT\n#include \"${input_file}\"" \ + > "${out_file}" +fi |