Use tqt3 binaries if available

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

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

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

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