Skip to content

Commit

Permalink
Specified target directories for qtopengl and rendering so that expor…
Browse files Browse the repository at this point in the history
…t headers are found correctly. Added Qt6::OpenGL and Qt6::OpenGLWidgets as dependencies in a few places as necessary.
  • Loading branch information
matterhorn103 committed Nov 16, 2023
1 parent a43193e commit 153c0f7
Show file tree
Hide file tree
Showing 13 changed files with 96 additions and 11 deletions.
7 changes: 6 additions & 1 deletion avogadro/qtplugins/aligntool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ avogadro_plugin(AlignTool
"${aligntool_rcs}"
)

target_link_libraries(AlignTool PRIVATE Avogadro::QtOpenGL)
target_link_libraries(AlignTool PRIVATE Avogadro::Rendering Avogadro::QtOpenGL)

target_include_directories(AlignTool
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering)

10 changes: 9 additions & 1 deletion avogadro/qtplugins/bondcentrictool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ avogadro_plugin(BondCentric
"${bondcentrictool_rcs}"
)

target_link_libraries(BondCentric PRIVATE Avogadro::QtOpenGL)
target_link_libraries(BondCentric
PRIVATE
Avogadro::Rendering
Avogadro::QtOpenGL)

target_include_directories(BondCentric
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
7 changes: 6 additions & 1 deletion avogadro/qtplugins/editor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ avogadro_plugin(Editor
"${editor_rcs}"
)

target_link_libraries(Editor PRIVATE Avogadro::QtOpenGL)
target_link_libraries(Editor PRIVATE Avogadro::Rendering Avogadro::QtOpenGL)

target_include_directories(Editor
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
7 changes: 6 additions & 1 deletion avogadro/qtplugins/focus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ avogadro_plugin(Focus
""
)

target_link_libraries(Focus PRIVATE Avogadro::QtOpenGL)
target_link_libraries(Focus PRIVATE Avogadro::Rendering Avogadro::QtOpenGL)

target_include_directories(Focus
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
10 changes: 9 additions & 1 deletion avogadro/qtplugins/label/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,12 @@ avogadro_plugin(LabelEditor
)

target_link_libraries(Label LINK_PRIVATE Avogadro::Rendering)
target_link_libraries(LabelEditor LINK_PRIVATE Avogadro::QtOpenGL)
target_link_libraries(LabelEditor
LINK_PRIVATE
Avogadro::Rendering
Avogadro::QtOpenGL)

target_include_directories(LabelEditor
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
10 changes: 9 additions & 1 deletion avogadro/qtplugins/manipulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ avogadro_plugin(Manipulator
"${manipulator_rcs}"
)

target_link_libraries(Manipulator PRIVATE Avogadro::QtOpenGL)
target_link_libraries(Manipulator
PRIVATE
Avogadro::Rendering
Avogadro::QtOpenGL)

target_include_directories(Manipulator
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
7 changes: 6 additions & 1 deletion avogadro/qtplugins/measuretool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ avogadro_plugin(MeasureTool
"${measuretool_rcs}"
)

target_link_libraries(MeasureTool PRIVATE Avogadro::QtOpenGL)
target_link_libraries(MeasureTool PRIVATE Avogadro::Rendering Avogadro::QtOpenGL)

target_include_directories(MeasureTool
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
7 changes: 6 additions & 1 deletion avogadro/qtplugins/navigator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ avogadro_plugin(Navigator
"${navigator_rcs}"
)

target_link_libraries(Navigator PRIVATE Avogadro::QtOpenGL)
target_link_libraries(Navigator PRIVATE Avogadro::Rendering Avogadro::QtOpenGL)

target_include_directories(Navigator
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
10 changes: 10 additions & 0 deletions avogadro/qtplugins/playertool/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
find_package(Qt6 REQUIRED COMPONENTS OpenGL OpenGLWidgets)

avogadro_plugin(PlayerTool
"Player tool"
ToolPlugin
Expand All @@ -12,4 +14,12 @@ target_link_libraries(PlayerTool
PRIVATE
gwavi
gif-h
Qt6::OpenGL
Qt6::OpenGLWidgets
Avogadro::Rendering
Avogadro::QtOpenGL)

target_include_directories(PlayerTool
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
9 changes: 8 additions & 1 deletion avogadro/qtplugins/resetview/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
find_package(Qt6 REQUIRED COMPONENTS OpenGLWidgets)

avogadro_plugin(ResetView
"Manipulate the view camera."
ExtensionPlugin
Expand All @@ -7,4 +9,9 @@ avogadro_plugin(ResetView
""
)

target_link_libraries(ResetView PRIVATE Avogadro::QtOpenGL)
target_link_libraries(ResetView PRIVATE Qt6::OpenGLWidgets Avogadro::Rendering Avogadro::QtOpenGL)

target_include_directories(ResetView
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
7 changes: 6 additions & 1 deletion avogadro/qtplugins/selectiontool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ avogadro_plugin(Selection
"${tool_rcs}"
)

target_link_libraries(Selection PRIVATE Avogadro::QtOpenGL)
target_link_libraries(Selection PRIVATE Avogadro::Rendering Avogadro::QtOpenGL)

target_include_directories(Selection
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
9 changes: 9 additions & 0 deletions avogadro/qtplugins/surfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
find_package(Qt6 REQUIRED COMPONENTS OpenGL)

set(surfaces_srcs
gaussiansetconcurrent.cpp
slatersetconcurrent.cpp
Expand All @@ -16,10 +18,17 @@ avogadro_plugin(Surfaces

target_link_libraries(Surfaces
PRIVATE
Qt6::OpenGL
Avogadro::Calc
Avogadro::QuantumIO
Avogadro::QtOpenGL
Avogadro::Rendering
Qt::Concurrent
gif-h
gwavi
tinycolormap)

target_include_directories(Surfaces
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)
7 changes: 6 additions & 1 deletion avogadro/qtplugins/templatetool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ avogadro_plugin(TemplateTool
"${template_rcs}"
)

target_link_libraries(TemplateTool LINK_PRIVATE Avogadro::QtOpenGL)
target_link_libraries(TemplateTool LINK_PRIVATE Avogadro::QtOpenGL Avogadro::Rendering)

target_include_directories(TemplateTool
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../../rendering
${CMAKE_CURRENT_BINARY_DIR}/../../qtopengl)

0 comments on commit 153c0f7

Please sign in to comment.