Add native TQt3 support to tqtinterface

pull/1/head
Timothy Pearson 13 years ago
parent 0f34dbddf9
commit 4ef8595d9c

@ -50,6 +50,7 @@ if( NOT DEFINED QT_INCLUDE_DIR )
if( QT_PREFIX_DIR STREQUAL "/usr" )
if( EXISTS "${QT_PREFIX_DIR}/include/tqt${QT_VERSION}" )
set( QT_INCLUDE_DIR "${QT_PREFIX_DIR}/include/tqt${QT_VERSION}" )
set( HAVE_REAL_TQT ON CACHE BOOL "Native TQt3 detected" )
else( )
set( QT_INCLUDE_DIR "${QT_PREFIX_DIR}/include/qt${QT_VERSION}" )
endif( )

@ -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

@ -0,0 +1,8 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
if [[ $1 == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
cat $1
fi

@ -0,0 +1,8 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
if [[ $1 == "" ]]; then
echo "Usage: tqt-replace <input_file>"
else
exit 0
fi
Loading…
Cancel
Save