1 # Copyright (C) 2012-2016 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
20 INCLUDE(CMakeDependentOption)
22 PROJECT(SalomeDOCUMENTATION)
26 # Project name, upper case
27 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
29 SET(${PROJECT_NAME_UC}_MAJOR_VERSION 9)
30 SET(${PROJECT_NAME_UC}_MINOR_VERSION 2)
31 SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
32 SET(${PROJECT_NAME_UC}_VERSION
33 ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
34 SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
38 SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
39 IF(EXISTS ${CONFIGURATION_ROOT_DIR})
40 LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
43 MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
46 INCLUDE(SalomeSetupPlatform)
49 # Find prerequisites needed to documentation generation
50 # ==================================================
51 FIND_PACKAGE(SalomePythonInterp)
52 FIND_PACKAGE(SalomePythonLibs)
53 FIND_PACKAGE(SalomeDoxygen)
54 FIND_PACKAGE(SalomeGraphviz)
55 FIND_PACKAGE(SalomeSphinx)
59 SET(SALOME_INSTALL_DOC_GUI gui CACHE PATH "Install path: user documentation")
60 SET(SALOME_INSTALL_DOC_TUI tui CACHE PATH "Install path: developer documentation")
61 SET(SALOME_INSTALL_DOC_DEV dev CACHE PATH "Install path: additional developer documentation")
62 SET(SALOME_INSTALL_DOC_EXTRA extra CACHE PATH "Install path: extra documentation")
65 SALOME_INSTALL_DOC_GUI
66 SALOME_INSTALL_DOC_TUI
67 SALOME_INSTALL_DOC_DEV
68 SALOME_INSTALL_DOC_EXTRA
75 ADD_SUBDIRECTORY(extra)
80 FILE(GLOB COMMON_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.html")
81 FILE(GLOB COMMON_PNG_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
83 INSTALL(FILES ${COMMON_HTML_FILES} ${COMMON_PNG_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX})