1 # Copyright (C) 2012-2015 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 7)
30 SET(${PROJECT_NAME_UC}_MINOR_VERSION 6)
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)
36 # Our own set of macros:
38 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
39 INCLUDE(SalomeSetupPlatform)
42 # Find prerequisites needed to documentation generation
43 # ==================================================
44 FIND_PACKAGE(SalomePython)
45 FIND_PACKAGE(SalomeDoxygen)
46 FIND_PACKAGE(SalomeGraphviz)
47 FIND_PACKAGE(SalomeSphinx)
51 SET(SALOME_INSTALL_DOC_GUI gui CACHE PATH "Install path: user documentation")
52 SET(SALOME_INSTALL_DOC_TUI tui CACHE PATH "Install path: developer documentation")
53 SET(SALOME_INSTALL_DOC_DEV dev CACHE PATH "Install path: additional developer documentation")
54 SET(SALOME_INSTALL_DOC_EXTRA extra CACHE PATH "Install path: extra documentation")
57 SALOME_INSTALL_DOC_GUI
58 SALOME_INSTALL_DOC_TUI
59 SALOME_INSTALL_DOC_DEV
60 SALOME_INSTALL_DOC_EXTRA
67 ADD_SUBDIRECTORY(extra)
72 FILE(GLOB COMMON_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.html")
73 FILE(GLOB COMMON_PNG_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
75 INSTALL(FILES ${COMMON_HTML_FILES} ${COMMON_PNG_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX})