Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying update for qt6. #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,22 @@ endif(USE_WEBKIT)
add_definitions( -DBOOST_ALL_NO_LIB )
include_directories(SYSTEM ${UG_ROOT_PATH}/externals/BoostForUG4)

# Qt5 with OpenGL support is required.
# Qt6 with OpenGL support is required.
# in order to use a custom installation of QT, specify QT_CMAKE_PATH when running
# cmake for the first time for your build (e.g. "...pathToQt/5.4/gcc_64/lib/cmake/")
# cmake for the first time for your build (e.g. "...pathToQt/6.4/gcc_64/lib/cmake/")
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(QT_CMAKE_PATH)
FIND_PACKAGE(Qt5Widgets REQUIRED PATHS ${QT_CMAKE_PATH}/Qt5Widgets)
FIND_PACKAGE(Qt5OpenGL REQUIRED PATHS ${QT_CMAKE_PATH}/Qt5OpenGL)
FIND_PACKAGE(Qt6Widgets REQUIRED PATHS ${QT_CMAKE_PATH}/Qt6Widgets)
FIND_PACKAGE(Qt6OpenGL REQUIRED PATHS ${QT_CMAKE_PATH}/Qt6OpenGL)
if(USE_WEBKIT)
FIND_PACKAGE(Qt5WebKitWidgets REQUIRED PATHS ${QT_CMAKE_PATH}/Qt5WebKitWidgets)
FIND_PACKAGE(Qt6WebKitWidgets REQUIRED PATHS ${QT_CMAKE_PATH}/Qt6WebKitWidgets)
endif(USE_WEBKIT)
else(QT_CMAKE_PATH)
FIND_PACKAGE(Qt5Widgets REQUIRED)
FIND_PACKAGE(Qt5OpenGL REQUIRED)
FIND_PACKAGE(Qt6Widgets REQUIRED)
FIND_PACKAGE(Qt6OpenGL REQUIRED)
if(USE_WEBKIT)
FIND_PACKAGE(Qt5WebKitWidgets REQUIRED)
FIND_PACKAGE(Qt6WebKitWidgets REQUIRED)
endif(USE_WEBKIT)
endif(QT_CMAKE_PATH)

Expand Down Expand Up @@ -231,7 +231,7 @@ endif(UNIX)
# resources
set(ProMeshRESOURCES ProMesh.qrc
docs/html-resources.qrc)
QT5_ADD_RESOURCES(ProMeshRESOURCES_RCC ${ProMeshRESOURCES})
QT6_ADD_RESOURCES(ProMeshRESOURCES_RCC ${ProMeshRESOURCES})

SET(allSources ${ProMeshSRC} ${ProMeshRESOURCES_RCC})

Expand Down Expand Up @@ -268,10 +268,10 @@ else(UNIX)
endif(MINGW)
endif(UNIX)

set(PM_LIBS ${OPENGL_LIBRARIES} Qt5::OpenGL Qt5::Widgets grid_s tet)
set(PM_LIBS ${OPENGL_LIBRARIES} Qt6::OpenGL Qt6::Widgets grid_s tet)

if(USE_WEBKIT)
set(PM_LIBS ${PM_LIBS} Qt5::WebKitWidgets)
set(PM_LIBS ${PM_LIBS} Qt6::WebKitWidgets)
endif(USE_WEBKIT)

TARGET_LINK_LIBRARIES(ProMesh4 ${PM_LIBS} ${Boost_LIBRARIES})
Expand Down
2 changes: 1 addition & 1 deletion src/scene/lg_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#ifndef __H__LG_OBJECT__
#define __H__LG_OBJECT__

#include <QGL>
#include <QtOpenGL>
#include <QObject>
#include "scene_interface.h"
#include "lg_include.h"
Expand Down