Skip to content

Commit

Permalink
Remove and tweak include_directories in plugins
Browse files Browse the repository at this point in the history
Also spotted a few variables still being used for linking along with
many calls to add the current binary directory to the include path.

Signed-off-by: Marcus D. Hanwell <[email protected]>
  • Loading branch information
cryos committed Apr 29, 2023
1 parent 83b9c84 commit b88b26a
Show file tree
Hide file tree
Showing 23 changed files with 5 additions and 42 deletions.
2 changes: 0 additions & 2 deletions avogadro/qtplugins/3dmol/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(ThreeDMol
"The 3DMol HTML Block Generator"
ExtensionPlugin
Expand Down
3 changes: 1 addition & 2 deletions avogadro/qtplugins/applycolors/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR}
"${AvogadroLibs_SOURCE_DIR}/thirdparty/tinycolormap/include")
include_directories("${AvogadroLibs_SOURCE_DIR}/thirdparty/tinycolormap/include")

avogadro_plugin(ApplyColors
"Extension to apply color schemes to atoms and residues."
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/bonding/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(Bonding
"Perform bonding operations."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/centroid/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(Centroid
"Add centroid and center-of-mass."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/coloropacitymap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")

set(_srcs
coloropacitymap.cpp
histogramwidget.cpp
Expand Down
3 changes: 0 additions & 3 deletions avogadro/qtplugins/coordinateeditor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(CoordinateEditor
"Show a window with a free-text coordinate editor."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/copypaste/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(CopyPaste
"Interact with the clipboard."
ExtensionPlugin
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtplugins/fetchpdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ avogadro_plugin(FetchPDB
)

target_link_libraries(FetchPDB
PRIVATE Avogadro::IO ${Qt5Network_LIBRARIES})
PRIVATE Avogadro::IO Qt::Network)
2 changes: 0 additions & 2 deletions avogadro/qtplugins/focus/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(Focus
"Focus the view on specific features."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/hydrogens/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(Hydrogens
"Extension that adds/removes hydrogens on a molecule."
ExtensionPlugin
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtplugins/importpqr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ avogadro_plugin(ImportPQR
""
)

target_link_libraries(ImportPQR PRIVATE ${Qt5Network_LIBRARIES})
target_link_libraries(ImportPQR PRIVATE Qt::Network)
2 changes: 1 addition & 1 deletion avogadro/qtplugins/insertdna/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR} "${AvogadroLibs_SOURCE_DIR}/thirdparty")
include_directories("${AvogadroLibs_SOURCE_DIR}/thirdparty")

avogadro_plugin(NucleicInput
"Insert DNA/RNA sequences."
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/insertfragment/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
include(ExternalProject)

include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(InsertFragment
"Insert molecular fragments and crystals."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/lineformatinput/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(LineFormatInput
"Enter line formats in a dialog window."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/molecularproperties/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(MolecularProperties
"Show a window with basic molecular properties."
ExtensionPlugin
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtplugins/plugindownloader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ avogadro_plugin(PluginDownloader
""
)

target_link_libraries(PluginDownloader PRIVATE ${Qt5Network_LIBRARIES}
target_link_libraries(PluginDownloader PRIVATE Qt::Network
${LIBARCHIVE_LIBRARIES})
2 changes: 0 additions & 2 deletions avogadro/qtplugins/ply/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(PLY
"Render the scene using PLY."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/povray/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(POVRay
"Render the scene using POV-Ray."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/propertytables/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(PropertyTables
"Atom, Bond, Angle, Dihedral property tables."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/resetview/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(ResetView
"Manipulate the view camera."
ExtensionPlugin
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/select/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(Select
"Extension that modifies selections."
ExtensionPlugin
Expand Down
1 change: 0 additions & 1 deletion avogadro/qtplugins/svg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})
find_package(Qt${QT_VERSION} COMPONENTS Svg REQUIRED)

avogadro_plugin(SVG
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/vrml/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})

avogadro_plugin(VRML
"Render the scene using VRML."
ExtensionPlugin
Expand Down

1 comment on commit b88b26a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.