set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/admin/InstallInfo.txt")
set(CPACK_SOURCE_IGNORE_FILES "\\\\.isreposource$;\\\\.git/;\\\\.gitignore$")
set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR}/CPackInit.cmake")
-set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${CMAKE_SOURCE_DIR};/;${CMAKE_BINARY_DIR}/share/man/man1;share/man/man1;${CMAKE_BINARY_DIR}/share/man/man7;share/man/man7;${CMAKE_BINARY_DIR}/share/html/final;share/html")
+set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${CMAKE_SOURCE_DIR};/;${CMAKE_BINARY_DIR}/share/man/man1;share/man/man1;${CMAKE_BINARY_DIR}/share/man/man7;share/man/man7;${CMAKE_BINARY_DIR}/share/html/final;share/html/final")
set(CPACK_PACKAGE_CONTACT "gmx-users@gromacs.org")
#must come after all cpack settings!
#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,2014, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
# the research papers on the package. Check out http://www.gromacs.org.
set(OUTPUT_DIR final)
+set(HTML_PAGE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${OUTPUT_DIR})
if(SOURCE_IS_SOURCE_DISTRIBUTION)
# Make sure source package contains HTML pages.
- if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/online.html")
+ if(NOT EXISTS "${HTML_PAGE_DIR}/online.html")
message(FATAL_ERROR "Online HTML pages are missing from source package.")
endif()
endif()
COMMENT "Generating HTML help"
VERBATIM)
-set(HTML_PAGE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
if (GMX_BUILD_HELP)
set_target_properties(html PROPERTIES EXCLUDE_FROM_ALL OFF)
set_directory_properties(PROPERTIES
- ADDITIONAL_MAKE_CLEAN_FILES "${OUTPUT_DIR};header.processed.html")
+ ADDITIONAL_MAKE_CLEAN_FILES "${OUTPUT_DIR};header.html")
set(HTML_PAGE_DIR ${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT_DIR})
endif()
if (SOURCE_IS_SOURCE_DISTRIBUTION OR GMX_BUILD_HELP)
- install(DIRECTORY ${HTML_PAGE_DIR}
- DESTINATION ${DATA_INSTALL_DIR}
+ install(DIRECTORY ${HTML_PAGE_DIR}/
+ DESTINATION ${DATA_INSTALL_DIR}/html
COMPONENT html)
endif()