set(DOWNLOAD_SECTION
"# Downloads
-* Source code - [gromacs-${PROJECT_VERSION}.tar.gz](gromacs-${PROJECT_VERSION}.tar.gz)
+* Source code - [gromacs-${GMX_VERSION_STRING}.tar.gz](gromacs-${GMX_VERSION_STRING}.tar.gz)
(md5sum ${SOURCE_MD5SUM})
Other source code versions may be found at <ftp://ftp.gromacs.org/pub/gromacs/>
-* Regression tests - [regressiontests-${PROJECT_VERSION}.tar.gz](regressiontests-${PROJECT_VERSION}.tar.gz)
+* Regression tests - [regressiontests-${GMX_VERSION_STRING}.tar.gz](regressiontests-${GMX_VERSION_STRING}.tar.gz)
(md5sum ${REGRESSIONTESTS_MD5SUM})
")
# Copy the source tarball to the webpage output
add_custom_command(
- OUTPUT ${HTML_OUTPUT_DIR}/gromacs-${PROJECT_VERSION}.tar.gz
+ OUTPUT ${HTML_OUTPUT_DIR}/gromacs-${GMX_VERSION_STRING}.tar.gz
COMMAND ${CMAKE_COMMAND}
- -E copy ${SOURCE_TARBALL} ${HTML_OUTPUT_DIR}/gromacs-${PROJECT_VERSION}.tar.gz
+ -E copy ${SOURCE_TARBALL} ${HTML_OUTPUT_DIR}/gromacs-${GMX_VERSION_STRING}.tar.gz
VERBATIM
)
# Copy the regressiontests tarball to the webpage output
add_custom_command(
- OUTPUT ${HTML_OUTPUT_DIR}/regressiontests-${PROJECT_VERSION}.tar.gz
+ OUTPUT ${HTML_OUTPUT_DIR}/regressiontests-${GMX_VERSION_STRING}.tar.gz
COMMAND ${CMAKE_COMMAND}
- -E copy ${REGRESSIONTESTS_TARBALL} ${HTML_OUTPUT_DIR}/regressiontests-${PROJECT_VERSION}.tar.gz
+ -E copy ${REGRESSIONTESTS_TARBALL} ${HTML_OUTPUT_DIR}/regressiontests-${GMX_VERSION_STRING}.tar.gz
VERBATIM
)
else()
# Make the PDF reference guide
# TODO Try to make the PDF arrive directly in ${HTML_OUTPUT_DIR}
add_custom_command(
- OUTPUT ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+ OUTPUT ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
COMMAND ${CMAKE_COMMAND}
- -E remove -f ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+ -E remove -f ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
COMMAND ${CMAKE_COMMAND}
- -E copy ${CMAKE_CURRENT_BINARY_DIR}/manual/gromacs.pdf ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+ -E copy ${CMAKE_CURRENT_BINARY_DIR}/manual/gromacs.pdf ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
# UseLATEX.cmake makes a target called pdf, not ${CMAKE_CURRENT_BINARY_DIR}/manual/gromacs.pdf
DEPENDS pdf
VERBATIM
# tarball
if(BUILD_DOWNLOAD_SECTION)
list(APPEND extra_webpage_dependencies
- ${HTML_OUTPUT_DIR}/gromacs-${PROJECT_VERSION}.tar.gz
- ${HTML_OUTPUT_DIR}/regressiontests-${PROJECT_VERSION}.tar.gz
+ ${HTML_OUTPUT_DIR}/gromacs-${GMX_VERSION_STRING}.tar.gz
+ ${HTML_OUTPUT_DIR}/regressiontests-${GMX_VERSION_STRING}.tar.gz
)
endif()
${HTML_OUTPUT_DIR}/index.html
install-guide
user-guide
- ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+ ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
${extra_webpage_dependencies}
VERBATIM
)