1 # Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
25 SALOME_CONFIGURE_FILE(conf.py.in conf.py)
27 IF(SALOME_GUI_BUILD_FRENCH_DOC)
28 SET(BUILD_LANGUAGE_SWITCHER "true")
29 SALOME_CONFIGURE_FILE(static/switchers.js.in static/switchers.js)
30 ADD_MULTI_LANG_DOCUMENTATION(TARGET_NAME usr_docs MODULE GUI LANGUAGES fr)
32 SET(BUILD_LANGUAGE_SWITCHER "false")
33 SALOME_CONFIGURE_FILE(static/switchers.js.in static/switchers.js)
34 ADD_MULTI_LANG_DOCUMENTATION(TARGET_NAME usr_docs MODULE GUI)
37 INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_docs)")
38 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/GUI DESTINATION ${SALOME_INSTALL_DOC}/gui)
39 IF(SALOME_GUI_BUILD_FRENCH_DOC)
40 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/GUI_fr DESTINATION ${SALOME_INSTALL_DOC}/gui)