]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
tentative generation pdf tutoriel
authorPaul RASCLE <paul.rascle@edf.fr>
Wed, 16 Dec 2015 07:34:56 +0000 (08:34 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Wed, 16 Dec 2015 07:34:56 +0000 (08:34 +0100)
doc/salome/tutorial/CMakeLists.txt

index 8c79507a541b7f43259db9eba9fcce91742d3b79..8fe572216b24408a075197ccbedbff3b86211c4d 100644 (file)
@@ -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