Use tqt3 binaries if available

pull/1/head
Timothy Pearson 12 years ago
parent 7a453a2786
commit 246b93316f

@ -105,7 +105,7 @@ if( DEFINED MOC_EXECUTABLE )
endif( )
else( )
if( QT_VERSION STREQUAL "3" )
find_program( MOC_EXECUTABLE NAMES moc-qt3 moc HINTS "${QT_BINARY_DIR}" )
find_program( MOC_EXECUTABLE NAMES tqmoc moc-qt3 moc HINTS "${QT_BINARY_DIR}" )
elseif( QT_VERSION STREQUAL "4" )
find_program( MOC_EXECUTABLE NAMES moc-qt4 moc HINTS "${QT_BINARY_DIR}" )
endif( )
@ -144,7 +144,7 @@ if( QT_VERSION STREQUAL "3" )
tde_message_fatal( "uic was NOT found.\n MOC_EXECUTABLE may not be set correctly" )
endif( )
else( )
find_program( UIC_EXECUTABLE NAMES uic-qt3 uic HINTS "${QT_BINARY_DIR}" )
find_program( UIC_EXECUTABLE NAMES tquic uic-qt3 uic HINTS "${QT_BINARY_DIR}" )
if( NOT UIC_EXECUTABLE )
tde_message_fatal( "uic was NOT found.\n Please check if your Qt${QT_VERSION} is correctly installed." )
endif( )

@ -110,6 +110,7 @@ install(
##### tqt tools #################################
configure_file( ${IFACE}/tmoc.cmake tmoc @ONLY )
configure_file( uic-tqt.cmake uic-tqt @ONLY )
if ( NOT HAVE_REAL_TQT )
configure_file( tqt-replace.cmake tqt-replace @ONLY )
configure_file( tqt-replace-stream.cmake tqt-replace-stream @ONLY )
@ -119,7 +120,8 @@ else ()
endif ()
install( PROGRAMS
moc-tqt uic-tqt mcopidl-tqt dcopidl-tqt dcopidlng-tqt
moc-tqt ${CMAKE_CURRENT_BINARY_DIR}/uic-tqt
mcopidl-tqt dcopidl-tqt dcopidlng-tqt
dcopidl2cpp-tqt convert_qt_tqt1 convert_qt_tqt2
convert_qt_tqt3 ${CMAKE_CURRENT_BINARY_DIR}/tmoc
${CMAKE_CURRENT_BINARY_DIR}/tqt-replace

@ -12,7 +12,7 @@ else
cp -Rp $uifile $uifile.bkp
tqt-replace $uifile
uic "$@"
@UIC_EXECUTABLE@ "$@"
cp -Rp $uifile.bkp $uifile
rm -f $uifile.bkp
fi
Loading…
Cancel
Save