1 # Copyright (C) 2012-2013 EDF
3 # This file is part of SALOME HYDRO module.
5 # SALOME HYDRO module is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # SALOME HYDRO module is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with SALOME HYDRO module. If not, see <http://www.gnu.org/licenses/>.
20 depouillementCalcul.rst
27 installationLancementSalome.rst
32 miseEnDonneesTelemac.rst
43 SET(SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR})
44 SET(PAPEROPT_a4 -D latex_paper_size=a4)
45 SET(ALLSPHINXOPTS -d doctrees ${PAPEROPT_a4} ${SPHINXOPTS} ${SOURCEDIR})
47 # install user's documentation
49 SALOME_CONFIGURE_FILE(conf.py.in conf.py)
51 SET(HTML_ROOT_FILE html/index.html)
53 ADD_CUSTOM_COMMAND(OUTPUT ${HTML_ROOT_FILE}
54 COMMAND ${CMAKE_COMMAND} -E make_directory html
55 COMMAND ${CMAKE_COMMAND} -E make_directory doctrees
56 COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_BINARY_DIR}/doc/salome/tutorial -b html ${ALLSPHINXOPTS} html
58 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
61 SET(PDF_ROOT_FILE latex/Makefile)
63 ADD_CUSTOM_COMMAND(OUTPUT ${PDF_ROOT_FILE}
64 COMMAND ${CMAKE_COMMAND} -E make_directory latex
65 COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_BINARY_DIR}/doc/salome/tutorial -b latex ${ALLSPHINXOPTS} latex
66 COMMAND make -C latex all-pdf
68 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
71 ADD_CUSTOM_TARGET(BUILD_HTML ALL DEPENDS ${PDF_ROOT_FILE} ${HTML_ROOT_FILE})
73 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
74 DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial
75 PATTERN ".buildinfo" EXCLUDE