# 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 index.rst english_casCalcul.rst english_depouillementCalcul.rst english_donneesPrealables.rst english_format_sinusx.rst english_geometrie.rst english_import.rst english_importBathy.rst english_installationLancementSalome.rst english_interpolationZ.rst english_introCloudCompare.rst english_introQgis.rst english_lancementCalcul.rst english_landCoverMap.rst english_maillage.rst english_manipsPolys.rst english_miseEnDonneesTelemac.rst english_objetsArtificiels.rst english_objetsNaturels.rst english_piegesAEviter.rst english_polylignes.rst english_preliminaires.rst english_sinusX_Format.rst english_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_HTML2 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/english -b html ${ALLSPHINXOPTS} html DEPENDS ${RSTFILES} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ADD_CUSTOM_TARGET(BUILD_PDF2 ALL COMMAND ${CMAKE_COMMAND} -E make_directory latex COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_BINARY_DIR}/doc/salome/tutorial/english -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_English_tutorial PATTERN ".buildinfo" EXCLUDE ) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/latex/moduleHYDRO_tutorial.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_English_tutorial)