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

Link publicly against Qt6::OpenGLWidgets #1902

Merged
merged 1 commit into from
Dec 30, 2024
Merged
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
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()
Loading