Salome HOME
Corrections of examples path after install with scbi
[modules/hydro.git] / doc / salome / tutorial / CMakeLists.txt
1 #  Copyright (C) 2012-2013 EDF
2 #
3 #  This file is part of SALOME HYDRO module.
4 #
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.
9 #
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.
14 #
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/>.
17
18 SET(RSTFILES
19   casCalcul.rst
20   changeCoordSystem.rst
21   depouillementCalcul.rst
22   donneesPrealables.rst
23   extensionMaillageExistant.rst
24   format_sinusx.rst
25   geometrie.rst
26   import.rst
27   importBathy.rst
28   index.rst
29   installationLancementSalome.rst
30   interpolationZ.rst
31   introCloudCompare.rst
32   introQgis.rst
33   lancementCalcul.rst
34   landCoverMap.rst
35   maillage.rst
36   manipsPolys.rst
37   miseEnDonneesTelemac.rst
38   modifBathy.rst
39   objetsArtificiels.rst
40   objetsNaturels.rst
41   piegesAEviter.rst
42   polylignes.rst
43   preliminaires.rst
44   sinusX_Format.rst
45   streams.rst
46   completeCase.rst
47   copyMesh.rst
48 )
49
50 SET(SPHINXOPTS )
51 SET(SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR})
52 SET(ALLSPHINXOPTS -d doctrees ${SPHINXOPTS} ${SOURCEDIR})
53
54 # install user's documentation
55
56 SALOME_CONFIGURE_FILE(conf.py.in conf.py)
57
58 ADD_CUSTOM_TARGET(BUILD_HTML ALL
59   COMMAND ${CMAKE_COMMAND} -E make_directory html
60   COMMAND ${CMAKE_COMMAND} -E make_directory doctrees
61   COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_BINARY_DIR}/doc/salome/tutorial -b html ${ALLSPHINXOPTS} html
62   DEPENDS ${RSTFILES}
63   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
64 )
65
66 ADD_CUSTOM_TARGET(BUILD_PDF ALL
67   COMMAND ${CMAKE_COMMAND} -E make_directory latex
68   COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_BINARY_DIR}/doc/salome/tutorial -b latex ${ALLSPHINXOPTS} latex
69   COMMAND make -C latex all-pdf
70   DEPENDS ${RSTFILES}
71   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
72 )
73
74 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
75   DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial
76   PATTERN ".buildinfo" EXCLUDE
77 )
78
79 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/latex/moduleHYDRO_tutoriel.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial)
80 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/SALOME_Memo.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/HYDRO_tutorial)
81
82 ADD_SUBDIRECTORY(english)
83