Skip to content

Commit

Permalink
Install ligand and functional group fragments
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Oct 24, 2023
1 parent 3c58251 commit c6afa7e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions avogadro/qtplugins/templatetool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,26 @@ avogadro_plugin(TemplateTool
"${template_rcs}"
)

# Install the fragments
set(_molecules "${AvogadroLibs_SOURCE_DIR}/../fragments")

# Look in parallel directory for the molecule fragment repository
if(NOT EXISTS "${_fragments}")
# download molecules...
ExternalProject_Add(fragments
GIT_REPOSITORY https://github.com/openchemistry/fragments
GIT_TAG main
# or https://github.com/OpenChemistry/molecules/archive/refs/heads/master.zip
SOURCE_DIR "${AvogadroLibs_SOURCE_DIR}/../fragments"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
endif()

install(DIRECTORY "${AvogadroLibs_SOURCE_DIR}/../fragments"
DESTINATION "${INSTALL_DATA_DIR}/avogadro2"
PATTERN ".git" EXCLUDE
)

target_link_libraries(TemplateTool LINK_PRIVATE Avogadro::QtOpenGL)

1 comment on commit c6afa7e

@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.