From: Paul RASCLE Date: Wed, 16 Dec 2015 07:34:56 +0000 (+0100) Subject: tentative generation pdf tutoriel X-Git-Tag: SALOME_HYDRO_V1.0~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c94058e6461958ce569fe4655a3152a40e9a8065;p=modules%2Fhydro.git tentative generation pdf tutoriel --- diff --git a/doc/salome/tutorial/CMakeLists.txt b/doc/salome/tutorial/CMakeLists.txt index 8c79507a..8fe57221 100644 --- a/doc/salome/tutorial/CMakeLists.txt +++ b/doc/salome/tutorial/CMakeLists.txt @@ -56,7 +56,17 @@ ADD_CUSTOM_COMMAND(OUTPUT ${HTML_ROOT_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) -ADD_CUSTOM_TARGET(BUILD_HTML ALL DEPENDS ${HTML_ROOT_FILE}) +SET(PDF_ROOT_FILE latex/Makefile) + +ADD_CUSTOM_COMMAND(OUTPUT ${PDF_ROOT_FILE} + COMMAND ${CMAKE_COMMAND} -E make_directory latex + COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_BINARY_DIR}/doc/salome/tutorial -b latex ${ALLSPHINXOPTS} latex + COMMAND make -C latex all-pdf + DEPENDS ${RSTFILES} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} +) + +ADD_CUSTOM_TARGET(BUILD_HTML ALL DEPENDS ${PDF_ROOT_FILE} ${HTML_ROOT_FILE}) INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial