summaryrefslogtreecommitdiffstats
path: root/qtinterface
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface')
-rw-r--r--qtinterface/CMakeLists.txt9
-rwxr-xr-xqtinterface/tqt-replace-stream-tqt3.cmake8
-rwxr-xr-xqtinterface/tqt-replace-tqt3.cmake8
3 files changed, 23 insertions, 2 deletions
diff --git a/qtinterface/CMakeLists.txt b/qtinterface/CMakeLists.txt
index 64fbb38..9803386 100644
--- a/qtinterface/CMakeLists.txt
+++ b/qtinterface/CMakeLists.txt
@@ -100,8 +100,13 @@ install(
##### tqt tools #################################
configure_file( tmoc.cmake tmoc @ONLY )
-configure_file( tqt-replace.cmake tqt-replace @ONLY )
-configure_file( tqt-replace-stream.cmake tqt-replace-stream @ONLY )
+if ( NOT HAVE_REAL_TQT )
+ configure_file( tqt-replace.cmake tqt-replace @ONLY )
+ configure_file( tqt-replace-stream.cmake tqt-replace-stream @ONLY )
+else ()
+ configure_file( tqt-replace-tqt3.cmake tqt-replace @ONLY )
+ configure_file( tqt-replace-stream-tqt3.cmake tqt-replace-stream @ONLY )
+endif ()
install( PROGRAMS
moc-tqt uic-tqt mcopidl-tqt dcopidl-tqt dcopidlng-tqt
diff --git a/qtinterface/tqt-replace-stream-tqt3.cmake b/qtinterface/tqt-replace-stream-tqt3.cmake
new file mode 100755
index 0000000..ca2e985
--- /dev/null
+++ b/qtinterface/tqt-replace-stream-tqt3.cmake
@@ -0,0 +1,8 @@
+#!/bin/bash
+QT_VERSION=@QT_VERSION@
+
+if [[ $1 == "" ]]; then
+ echo "Usage: tqt-replace-stream <filename>"
+else
+ cat $1
+fi
diff --git a/qtinterface/tqt-replace-tqt3.cmake b/qtinterface/tqt-replace-tqt3.cmake
new file mode 100755
index 0000000..df9703b
--- /dev/null
+++ b/qtinterface/tqt-replace-tqt3.cmake
@@ -0,0 +1,8 @@
+#!/bin/bash
+QT_VERSION=@QT_VERSION@
+
+if [[ $1 == "" ]]; then
+ echo "Usage: tqt-replace <input_file>"
+else
+ exit 0
+fi