Install documentation.

develop
expwnent 2015-09-25 18:53:46 -04:00
parent a188b9d567
commit 9b07ebbf97
1 changed files with 7 additions and 1 deletions

@ -177,7 +177,7 @@ IF(BUILD_LIBRARY)
## install the default documentation files ## install the default documentation files
#install(FILES LICENSE NEWS "Lua API.html" Readme.html Compile.html Contributors.html DESTINATION ${DFHACK_USERDOC_DESTINATION}) #install(FILES LICENSE NEWS "Lua API.html" Readme.html Compile.html Contributors.html DESTINATION ${DFHACK_USERDOC_DESTINATION})
install(FILES LICENSE NEWS DESTINATION ${DFHACK_USERDOC_DESTINATION}) install(FILES LICENSE NEWS DESTINATION ${DFHACK_USERDOC_DESTINATION})
install(DIRECTORY docs/images DESTINATION ${DFHACK_USERDOC_DESTINATION}) #install(DIRECTORY docs/images DESTINATION ${DFHACK_USERDOC_DESTINATION})
endif() endif()
install(DIRECTORY dfhack-config/ DESTINATION dfhack-config/default) install(DIRECTORY dfhack-config/ DESTINATION dfhack-config/default)
@ -212,6 +212,12 @@ if (BUILD_DOCS)
"${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}"
"${SPHINX_HTML_DIR}" "${SPHINX_HTML_DIR}"
COMMENT "Building HTML documentation with Sphinx") COMMENT "Building HTML documentation with Sphinx")
install(DIRECTORY ${dfhack_SOURCE_DIR}/docs/html
DESTINATION ${DFHACK_USERDOC_DESTINATION}
#FILES_MATCHING PATTERN "*.lua"
# PATTERN "*.rb"
# PATTERN "3rdparty" EXCLUDE
)
endif() endif()
# Packaging with CPack! # Packaging with CPack!