Merge branch 'CGAL-Qt5_support-GF' of github.com:CGAL/cgal-public-dev into CGAL-Qt5_support-GF

This commit is contained in:
Andreas Fabri 2015-07-07 11:26:47 +02:00
commit ad4a0169fb
31 changed files with 32 additions and 30 deletions

View File

@ -14,7 +14,7 @@ endif()
# Include this package's headers first
include_directories( BEFORE ./ ./include ../../include )
# Find CGAL and CGAL Qt5
find_package(CGAL REQUIRED COMPONENTS Qt5 )
find_package(CGAL COMPONENTS Qt5 )
include( ${CGAL_USE_FILE} )
# Find Qt5 itself

View File

@ -1311,6 +1311,7 @@ void Scene::deactivate_cutting_plane()
}
void Scene::initGL()
{
qDebug()<<"context from scene is valid :"<<context->isValid();
initializeOpenGLFunctions();
glGenTextures(1, &textureId);
compile_shaders();

View File

@ -31,6 +31,7 @@ void Viewer::initializeGL()
QGLViewer::initializeGL();
setBackgroundColor(::Qt::white);
m_pScene->context = this->context();
qDebug()<<"context from viewer is valid :"<<this->context()->isValid();
m_pScene->initGL();
}

View File

@ -26,7 +26,7 @@ include( ${CGAL_USE_FILE} )
include( CGAL_CreateSingleSourceCGALProgram )
# Boost and its components
find_package( Boost REQUIRED )
find_package( Boost )
if ( NOT Boost_FOUND )

View File

@ -11,7 +11,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})
find_package(Qt5 COMPONENTS Xml Script OpenGL)

View File

@ -36,7 +36,7 @@ include( ${CGAL_USE_FILE} )
# Boost and its components
find_package( Boost REQUIRED )
find_package( Boost )
if ( NOT Boost_FOUND )
message(STATUS "This project requires the Boost library, and will not be compiled.")

View File

@ -33,7 +33,7 @@ include( ${CGAL_USE_FILE} )
# Boost and its components
find_package( Boost REQUIRED )
find_package( Boost )
if ( NOT Boost_FOUND )

View File

@ -5,7 +5,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})
find_package(Qt5 COMPONENTS Xml Script OpenGL)

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -7,7 +7,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if ( COMMAND cmake_policy )
cmake_policy( SET CMP0003 NEW )
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5 REQUIRED)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5 Core)
find_package(CGAL COMPONENTS Qt5 Core)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -8,7 +8,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -30,7 +30,7 @@ endif()
add_definitions(-DCGAL_PROFILE_LCC_DEMO)
##################
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})
find_package(Qt5 COMPONENTS Xml Script OpenGL)

View File

@ -14,7 +14,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
include_directories( BEFORE ${Mesh_3_implicit_functions_BINARY_DIR} ../include )
# Find CGAL and CGAL Qt5
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include( ${CGAL_USE_FILE} )
# Find Qt5 itself

View File

@ -10,7 +10,7 @@ if(POLICY CMP0043)
endif()
# Find CGAL
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include( ${CGAL_USE_FILE} )
# Find Qt5 itself

View File

@ -12,7 +12,7 @@ if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -53,7 +53,7 @@ set( QT_USE_QTOPENGL TRUE )
if( POLYHEDRON_QTSCRIPT_DEBUGGER)
set( QT_USE_QTSCRIPTTOOLS TRUE )
endif()
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include( ${CGAL_USE_FILE} )
find_package(Qt5 COMPONENTS OpenGL Script Svg Xml ScriptTools)

View File

@ -36,7 +36,7 @@ include( ${CGAL_USE_FILE} )
# Boost and its components
find_package( Boost REQUIRED )
find_package( Boost )
if ( NOT Boost_FOUND )

View File

@ -16,7 +16,7 @@ endforeach()
include_directories( ./ )
# Find CGAL and CGAL Qt5
find_package(CGAL REQUIRED COMPONENTS Qt5)
find_package(CGAL COMPONENTS Qt5)
include( ${CGAL_USE_FILE} )
# Find Qt5 itself

View File

@ -36,7 +36,7 @@ include( ${CGAL_USE_FILE} )
# Boost and its components
find_package( Boost REQUIRED )
find_package( Boost )
if ( NOT Boost_FOUND )

View File

@ -36,7 +36,7 @@ include( ${CGAL_USE_FILE} )
# Boost and its components
find_package( Boost REQUIRED )
find_package( Boost )
if ( NOT Boost_FOUND )

View File

@ -36,7 +36,7 @@ set( QT_USE_QTXML TRUE )
set( QT_USE_QTMAIN TRUE )
find_package(CGAL COMPONENTS ImageIO Qt5)
if ( CGAL_FOUND AND CGAL_Qt5_FOUND)
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND CGAL_ImageIO_FOUND)
add_definitions(-DQT_NO_KEYWORDS)
include( ${CGAL_USE_FILE} )
@ -45,7 +45,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND)
find_package(QGLViewer )
find_package(OpenGL )
if ( QGLVIEWER_FOUND )
if ( QGLVIEWER_FOUND AND Qt5_FOUND)
include_directories( ${QGLVIEWER_INCLUDE_DIR} )