This repository was archived by the owner on Sep 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,19 @@ if(ENABLE_REGRESSION_TESTING)
122122 message (STATUS "Use VOTCASHARE=${VOTCA_SHARE} PATH=${VOTCA_PATH} :\$ PATH VOTCA_CSG_DEFAULTS=${VOTCA_CSG_DEFAULTS} for out-of-cmake testing" )
123123endif ()
124124
125+ if (VOTCA_SPHINX_DIR)
126+ file (GLOB RSTS ${CMAKE_CURRENT_SOURCE_DIR} /guide/*.rst)
127+ set (MANUAL_RST_FILES)
128+ foreach (_RST ${RSTS} )
129+ get_filename_component (_FILE "${_RST} " NAME )
130+ add_custom_command (OUTPUT ${VOTCA_SPHINX_DIR} /csg-tutorials/${_FILE}
131+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${_RST} ${VOTCA_SPHINX_DIR} /csg-tutorials/${_FILE}
132+ DEPENDS ${_RST} )
133+ list (APPEND MANUAL_RST_FILES ${VOTCA_SPHINX_DIR} /csg-tutorials/${_FILE} )
134+ endforeach ()
135+ add_custom_target (doc -csg-tutorials DEPENDS ${MANUAL_RST_FILES} ${MANUAL_PNG_FILES} )
136+ endif ()
137+
125138install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} / DESTINATION ${CMAKE_INSTALL_DATADIR} /votca/csg-tutorials
126139 PATTERN ".git*" EXCLUDE PATTERN "step_*" EXCLUDE
127140 PATTERN "CMake*" EXCLUDE PATTERN "cmake_install.cmake" EXCLUDE
Original file line number Diff line number Diff line change 1- Votca Tutorial Guide
2- ====================
1+ CSG Tutorial
2+ ============
33
44(Based on the 2011-2017 CECAM meetings)
55
You can’t perform that action at this time.
0 commit comments