Skip to content

Commit

Permalink
Further fixes for Qt6
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew J. Milner <[email protected]>
  • Loading branch information
matterhorn103 committed Sep 16, 2024
1 parent 426932b commit 6ff0f38
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions avogadro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ endif()

# Find the Qt components we need.
if(QT_VERSION EQUAL 6)
find_package(Qt6 COMPONENTS Concurrent Widgets Network Core5Compat REQUIRED)
find_package(Qt6
COMPONENTS
Concurrent
Widgets
Network
Core5Compat
OpenGL
OpenGLWidgets
REQUIRED)
else()
find_package(Qt5 COMPONENTS Concurrent Widgets Network REQUIRED)
endif()
Expand Down Expand Up @@ -204,7 +212,7 @@ if(ENABLE_TESTING)
target_link_libraries(avogadro QtTesting)
endif()
if(QT_VERSION EQUAL 6)
target_link_libraries(avogadro Qt6::Core5Compat)
target_link_libraries(avogadro Qt6::Core5Compat Qt6::OpenGL Qt6::OpenGLWidgets)
endif()

if(USE_3DCONNEXION AND (WIN32 OR APPLE))
Expand Down

0 comments on commit 6ff0f38

Please sign in to comment.