# To help us fund GROMACS development, we humbly ask that you cite
# the research papers on the package. Check out http://www.gromacs.org.
+option(GMX_BUILD_HELP "Build man pages and HTML help automatically" OFF)
+mark_as_advanced(GMX_BUILD_HELP)
+if (GMX_BUILD_HELP AND SOURCE_IS_SOURCE_DISTRIBUTION AND
+ "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
+
+ message(FATAL_ERROR
+ "Rebuilding HTML and man pages it not supported for in-source "
+ "builds from a source distribution. "
+ "Set GMX_BUILD_HELP=OFF or do an out-of-source build to proceed.")
+endif()
+
add_subdirectory(html)
add_subdirectory(man)
add_subdirectory(template)
DESTINATION ${DATA_INSTALL_DIR}/top
COMPONENT data
PATTERN "*~" EXCLUDE)
-
-install(DIRECTORY . DESTINATION ${DATA_INSTALL_DIR}
- COMPONENT data
- PATTERN "Makefile*" EXCLUDE
- PATTERN "CMake*" EXCLUDE
- PATTERN "cmake*" EXCLUDE
- PATTERN "*~" EXCLUDE
- PATTERN "template" EXCLUDE
-)