Skip to content

Commit

Permalink
Merge pull request #1902 from nicolasfella/glwid
Browse files Browse the repository at this point in the history
Link publicly against Qt6::OpenGLWidgets
  • Loading branch information
ghutchis authored Dec 30, 2024
2 parents d231082 + 4d421f2 commit 4d12b05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion avogadro/qtopengl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ target_sources(QtOpenGL PRIVATE
avogadro_add_library(QtOpenGL)
target_link_libraries(QtOpenGL PUBLIC Avogadro::Rendering Avogadro::QtGui Qt::Widgets)
if(QT_VERSION EQUAL 6)
target_link_libraries(QtOpenGL PRIVATE Qt6::OpenGLWidgets)
target_link_libraries(QtOpenGL PUBLIC Qt6::OpenGLWidgets)
endif()
6 changes: 6 additions & 0 deletions cmake/AvogadroLibsConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ set(AvogadroLibs_CMAKE_DIR "${AvogadroLibs_LIBRARY_DIR}/cmake/avogadrolibs
set(AvogadroLibs_PLUGINS "@AvogadroLibs_PLUGINS@")
set(AvogadroLibs_STATIC_PLUGINS "@AvogadroLibs_STATIC_PLUGINS@")

include(CMakeFindDependencyMacro)

if (@QT_VERSION@ EQUAL 6)
find_dependency(Qt6OpenGLWidgets)
endif()

if(NOT TARGET AvogadroCore)
include("${AvogadroLibs_CMAKE_DIR}/AvogadroLibsTargets.cmake")
endif()

0 comments on commit 4d12b05

Please sign in to comment.