# Copyright (C) 2012-2013 EDF # # This file is part of SALOME HYDRO module. # # SALOME HYDRO module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # SALOME HYDRO module is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with SALOME HYDRO module. If not, see . SET(RSTFILES casCalcul.rst depouillementCalcul.rst donneesPrealables.rst format_sinusx.rst geometrie.rst import.rst importBathy.rst index.rst installationLancementSalome.rst interpolationZ.rst introCloudCompare.rst introQgis.rst lancementCalcul.rst landCoverMap.rst maillage.rst manipsPolys.rst miseEnDonneesTelemac.rst objetsArtificiels.rst objetsNaturels.rst piegesAEviter.rst polylignes.rst preliminaires.rst sinusX_Format.rst streams.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}) # install user's documentation 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_BINARY_DIR}/doc/salome/tutorial -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_BINARY_DIR}/doc/salome/tutorial -b latex ${ALLSPHINXOPTS} latex COMMAND make -C latex all-pdf DEPENDS ${RSTFILES} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial PATTERN ".buildinfo" EXCLUDE ) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/latex/moduleHYDRO_tutoriel.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/SALOME_Memo.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial) ADD_SUBDIRECTORY(english)