mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
Do not generate PDF documentation with latex
This commit is contained in:
parent
1b77c7e1e1
commit
4ae19232e4
@ -17,47 +17,18 @@
|
||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||
#
|
||||
|
||||
SET(RSTFILES
|
||||
index.rst
|
||||
)
|
||||
|
||||
SET(SPHINXOPTS )
|
||||
SET(SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
SET(PAPEROPT_a4 -D latex_paper_size=a4)
|
||||
SET(ALLSPHINXOPTS -d doctrees ${PAPEROPT_a4} ${SPHINXOPTS} ${SOURCEDIR})
|
||||
|
||||
SALOME_CONFIGURE_FILE(conf.py.in conf.py)
|
||||
|
||||
ADD_CUSTOM_TARGET(BUILD_HTML ALL
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory html
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory doctrees
|
||||
COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_CURRENT_BINARY_DIR} -b html ${ALLSPHINXOPTS} html
|
||||
DEPENDS ${RSTFILES}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(BUILD_PDF ALL
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory latex
|
||||
COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_CURRENT_BINARY_DIR} -b latex ${ALLSPHINXOPTS} latex
|
||||
COMMAND make -C latex all-pdf
|
||||
DEPENDS ${RSTFILES}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
SET(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR} -b html -d doctrees -D latex_paper_size=a4 ${CMAKE_CURRENT_SOURCE_DIR} docutils)
|
||||
SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")
|
||||
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
|
||||
ADD_CUSTOM_TARGET(html_docs_blocFissure COMMAND ${_cmd})
|
||||
|
||||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target html_docs_blocFissure)")
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docutils/
|
||||
DESTINATION ${SALOME_INSTALL_DOC}/gui/SMESH/blocFissure
|
||||
PATTERN ".buildinfo" EXCLUDE
|
||||
)
|
||||
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/latex/blocFissure.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/SMESH/blocFissure)
|
||||
|
||||
#SET(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR} -b html -d doctrees -D latex_paper_size=a4 ${CMAKE_CURRENT_SOURCE_DIR} docutils)
|
||||
#SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")
|
||||
|
||||
#ADD_CUSTOM_TARGET(html_docs_ZCracksPlug COMMAND ${_cmd})
|
||||
|
||||
#INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target html_docs_ZCracksPlug)")
|
||||
#INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docutils/ DESTINATION ${SALOME_INSTALL_DOC}/gui/SMESH/zcracks)
|
||||
|
||||
#SET(make_clean_files docutils doctrees)
|
||||
#SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${make_clean_files}")
|
||||
SET(make_clean_files docutils doctrees)
|
||||
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${make_clean_files}")
|
||||
|
Loading…
Reference in New Issue
Block a user