From c94058e6461958ce569fe4655a3152a40e9a8065 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 16 Dec 2015 08:34:56 +0100 Subject: [PATCH] tentative generation pdf tutoriel --- doc/salome/tutorial/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.39.2