Salome HOME
[EDF27816] : Fix bug presence of proxy into a list
[modules/yacs.git] / doc / CMakeLists.txt
1 # Copyright (C) 2012-2023  CEA, EDF
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 SET(RSTFILES
21   accesCorba.rst
22   accesLocal.rst
23   advancepy.rst
24   annexe_common.rst
25   batch.rst
26   calcium.rst
27   calciumyacs.rst
28   calciumapi.rst
29   calciummod.rst
30   calculator.rst
31   compInterne.rst
32   components.rst
33   console.rst
34   cppsalome.rst
35   dataflow.rst
36   etapes.rst
37   execpy.rst
38   execution.rst
39   execxml.rst
40   gui_components.rst
41   gui.rst
42   hxx2salome.rst
43   index.rst
44   integration.rst
45   using.rst
46   main_menu.rst
47   modification.rst
48   operations.rst
49   pmml.rst
50   principes.rst
51   progdsc.rst
52   pysalome.rst
53   python.rst
54   rappels.rst
55   references.rst
56   representation.rst
57   salome.rst
58   schemapy.rst
59   schemaxml.rst
60   scratch.rst
61   toolbars.rst
62   optimizer.rst
63   )
64
65 SET(SPHINXOPTS )
66 SET(SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR})
67 SET(PAPEROPT_a4 -D latex_paper_size=a4)
68 SET(ALLSPHINXOPTS -d doctrees ${PAPEROPT_a4} ${SPHINXOPTS} ${SOURCEDIR})
69
70 # install user's documentation
71
72 SALOME_CONFIGURE_FILE(conf.py.in conf.py)
73
74 ADD_CUSTOM_TARGET(htm 
75   COMMAND ${CMAKE_COMMAND} -E make_directory html 
76   COMMAND ${CMAKE_COMMAND} -E make_directory doctrees
77   COMMAND ${SPHINX_EXECUTABLE} -c ${CMAKE_BINARY_DIR}/doc -b html ${ALLSPHINXOPTS} html
78   DEPENDS ${RSTFILES}
79   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
80   )
81 INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target htm)")
82 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ 
83   DESTINATION ${SALOME_INSTALL_DOC}/gui/YACS 
84   USE_SOURCE_PERMISSIONS
85   PATTERN ".buildinfo" EXCLUDE
86   )
87   
88 SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES html)
89 SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES doctrees)
90
91 # install developer's documentation
92
93 SALOME_CONFIGURE_FILE(Doxyfile.in Doxyfile)
94 SALOME_CONFIGURE_FILE(sources/header.html.in sources/header.html)
95
96 ADD_CUSTOM_TARGET(dev_docs ${DOXYGEN_EXECUTABLE})
97
98 #INSTALL(CODE "FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/YACS/htmldev)")
99 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/YACS/htmldev/ OPTIONAL DESTINATION ${SALOME_INSTALL_DOC}/tui/YACS)
100 #INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/yacsloader/samples
101 #        DESTINATION ${SALOME_INSTALL_DOC}/tui/YACS
102 #        PATTERN "CVS" EXCLUDE
103 #        PATTERN "*.md5" EXCLUDE
104 #        PATTERN "*.map" EXCLUDE
105 #        )
106 SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES YACS)