|
|
@ -160,6 +160,18 @@ if( QT_VERSION STREQUAL "3" )
|
|
|
|
#include <qapplication.h>
|
|
|
|
#include <qapplication.h>
|
|
|
|
int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } "
|
|
|
|
int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } "
|
|
|
|
HAVE_USABLE_QT${QT_VERSION} )
|
|
|
|
HAVE_USABLE_QT${QT_VERSION} )
|
|
|
|
|
|
|
|
if( NOT HAVE_USABLE_QT${QT_VERSION} )
|
|
|
|
|
|
|
|
# Unset the Qt detection variable
|
|
|
|
|
|
|
|
unset( HAVE_USABLE_QT${QT_VERSION} CACHE )
|
|
|
|
|
|
|
|
# Reset libraries
|
|
|
|
|
|
|
|
set( QT_LIBRARIES tqt-mt )
|
|
|
|
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES -L${QT_LIBRARY_DIR} ${QT_LIBRARIES} )
|
|
|
|
|
|
|
|
qt_message( "Looking for native TQt3..." )
|
|
|
|
|
|
|
|
check_cxx_source_compiles("
|
|
|
|
|
|
|
|
#include <qapplication.h>
|
|
|
|
|
|
|
|
int main(int argc, char **argv) { TQApplication app(argc, argv); return 0; } "
|
|
|
|
|
|
|
|
HAVE_USABLE_QT${QT_VERSION} )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
# check if Qt4 is usable
|
|
|
|
# check if Qt4 is usable
|
|
|
|
elseif( QT_VERSION STREQUAL "4" )
|
|
|
|
elseif( QT_VERSION STREQUAL "4" )
|
|
|
|
check_cxx_source_compiles("
|
|
|
|
check_cxx_source_compiles("
|
|
|
@ -178,6 +190,19 @@ if( QT_VERSION STREQUAL "3" )
|
|
|
|
#include <qobject.h>
|
|
|
|
#include <qobject.h>
|
|
|
|
int main(int, char**) { QObject::objectTreesListObject(); return 0; } "
|
|
|
|
int main(int, char**) { QObject::objectTreesListObject(); return 0; } "
|
|
|
|
HAVE_PATCHED_QT3 )
|
|
|
|
HAVE_PATCHED_QT3 )
|
|
|
|
|
|
|
|
if( NOT HAVE_PATCHED_QT3 )
|
|
|
|
|
|
|
|
# Unset the Qt detection variable
|
|
|
|
|
|
|
|
unset( HAVE_PATCHED_QT3 CACHE )
|
|
|
|
|
|
|
|
# Reset libraries
|
|
|
|
|
|
|
|
set( QT_LIBRARIES tqt-mt )
|
|
|
|
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES -L${QT_LIBRARY_DIR} ${QT_LIBRARIES} )
|
|
|
|
|
|
|
|
qt_message( "Looking for patched native TQt3..." )
|
|
|
|
|
|
|
|
check_cxx_source_compiles("
|
|
|
|
|
|
|
|
#include <qobjectlist.h>
|
|
|
|
|
|
|
|
#include <qobject.h>
|
|
|
|
|
|
|
|
int main(int, char**) { TQObject::objectTreesListObject(); return 0; } "
|
|
|
|
|
|
|
|
HAVE_PATCHED_QT3 )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
if( NOT HAVE_PATCHED_QT3 )
|
|
|
|
if( NOT HAVE_PATCHED_QT3 )
|
|
|
|
tde_message_fatal( "Your Qt3 is not patched for compatibility with tqtinterface." )
|
|
|
|
tde_message_fatal( "Your Qt3 is not patched for compatibility with tqtinterface." )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|