Salome HOME
CMake: simplifying Python detection mechanism: remove old file.
[tools/documentation.git] / CMakeLists.txt
1 # Copyright (C) 2012-2015  CEA/DEN, EDF R&D, OPEN CASCADE
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 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
20 INCLUDE(CMakeDependentOption)
21
22 PROJECT(SalomeDOCUMENTATION)
23
24 # Versioning
25 # ========
26 # Project name, upper case
27 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
28
29 SET(${PROJECT_NAME_UC}_MAJOR_VERSION 7)
30 SET(${PROJECT_NAME_UC}_MINOR_VERSION 7)
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)
35
36 # Our own set of macros:
37 # ==================
38 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
39 INCLUDE(SalomeSetupPlatform)
40 INCLUDE(SalomeMacros)
41
42 # Find prerequisites needed to documentation generation
43 # ==================================================
44 FIND_PACKAGE(SalomePythonInterp)
45 FIND_PACKAGE(SalomePythonLibs)
46 FIND_PACKAGE(SalomeDoxygen)
47 FIND_PACKAGE(SalomeGraphviz)
48 FIND_PACKAGE(SalomeSphinx)
49
50 # Directories
51 # =========
52 SET(SALOME_INSTALL_DOC_GUI   gui   CACHE PATH "Install path: user documentation")
53 SET(SALOME_INSTALL_DOC_TUI   tui   CACHE PATH "Install path: developer documentation")
54 SET(SALOME_INSTALL_DOC_DEV   dev   CACHE PATH "Install path: additional developer documentation")
55 SET(SALOME_INSTALL_DOC_EXTRA extra CACHE PATH "Install path: extra documentation")
56
57 MARK_AS_ADVANCED(
58  SALOME_INSTALL_DOC_GUI 
59  SALOME_INSTALL_DOC_TUI
60  SALOME_INSTALL_DOC_DEV
61  SALOME_INSTALL_DOC_EXTRA
62 )
63
64 # Sources 
65 # =====
66 ADD_SUBDIRECTORY(tui)
67 ADD_SUBDIRECTORY(gui)
68 ADD_SUBDIRECTORY(extra)
69 ADD_SUBDIRECTORY(dev)
70
71 # Install rules
72 # ==========
73 FILE(GLOB COMMON_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.html")
74 FILE(GLOB COMMON_PNG_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
75
76 INSTALL(FILES ${COMMON_HTML_FILES} ${COMMON_PNG_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX})