|
|
|
@ -197,8 +197,8 @@ find_package( TDE )
|
|
|
|
|
|
|
|
|
|
# check for Qt with OpenGL support
|
|
|
|
|
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
|
|
|
|
|
set( CMAKE_REQUIRED_INCLUDES ${QT_INCLUDE_DIRS} )
|
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES -L${QT_LIBRARY_DIRS} ${QT_LIBRARIES} )
|
|
|
|
|
set( CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} )
|
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES -L${TQT_LIBRARY_DIRS} ${TQT_LIBRARIES} )
|
|
|
|
|
check_cxx_source_compiles("
|
|
|
|
|
#include <qgl.h>
|
|
|
|
|
int main(int, char**) { (void)new QGLWidget((QWidget*)0, \"qgl\"); return 0; } "
|
|
|
|
@ -212,7 +212,7 @@ if( WITH_KONQSIDEBAR )
|
|
|
|
|
set( CMAKE_REQUIRED_DEFINITIONS ${TQT_CFLAGS_OTHER} )
|
|
|
|
|
set( CMAKE_REQUIRED_INCLUDES ${TDE_INCLUDE_DIR};${TQT_INCLUDE_DIRS};${CMAKE_INCLUDE_PATH} )
|
|
|
|
|
set( CMAKE_REQUIRED_FLAGS "-include tqt.h" )
|
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES -L${TQT_LIBRARY_DIRS} -L${QT_LIBRARY_DIRS} ${TQT_LIBRARIES} )
|
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES -L${TQT_LIBRARY_DIRS} -L${TQT_LIBRARY_DIRS} ${TQT_LIBRARIES} )
|
|
|
|
|
check_cxx_source_compiles("
|
|
|
|
|
#include <konqsidebarplugin.h>
|
|
|
|
|
int main(int, char**) { return 0; } "
|
|
|
|
|