Salome HOME
Add COPYING license file
[tools/eficas.git] / Doc / CMakeLists.txt
1 # Copyright (C) 2001-2020 EDF R&D
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.
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 find_package(Sphinx REQUIRED)
20
21 # configured documentation tools and intermediate build results
22 set(BINARY_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/_build")
23
24 # Sphinx cache with pickled ReST documents
25 set(SPHINX_CACHE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
26
27 # HTML output directory
28 set(SPHINX_HTML_DIR "${CMAKE_CURRENT_BINARY_DIR}/html")
29
30 add_custom_target(EFICAS_NOUVEAUdoc ALL
31   ${SPHINX_EXECUTABLE}
32     -q -b html
33     -d "${SPHINX_CACHE_DIR}"
34     "${CMAKE_CURRENT_SOURCE_DIR}"
35     "${SPHINX_HTML_DIR}"
36   COMMENT "Building HTML documentation with Sphinx")
37
38 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${CMAKE_INSTALL_PREFIX}/Doc/)