]> SALOME platform Git repositories - modules/parametric.git/blob - CMakeLists.txt
Salome HOME
Reactivate doc generation (option SALOME_BUILD_DOC)
[modules/parametric.git] / CMakeLists.txt
1 # Copyright (C) 2012-2013 EDF
2 #
3 # This file is part of SALOME PARAMETRIC module.
4 #
5 # SALOME PARAMETRIC module is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # SALOME PARAMETRIC module is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with SALOME PARAMETRIC module.  If not, see <http://www.gnu.org/licenses/>.
17
18 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
19 PROJECT(PARAMETRIC)
20 SET(VERSION "7.2.0")
21 SET(SHORT_VERSION "7.2")
22
23 SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR})
24 IF(NOT KERNEL_ROOT_DIR)
25   MESSAGE(FATAL_ERROR "Environment variable KERNEL_ROOT_DIR not set")
26 ENDIF(NOT KERNEL_ROOT_DIR)
27
28 SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR})
29 IF(NOT GUI_ROOT_DIR)
30   MESSAGE(FATAL_ERROR "Environment variable GUI_ROOT_DIR not set")
31 ENDIF(NOT GUI_ROOT_DIR)
32
33 SET(CMAKE_MODULE_PATH ${KERNEL_ROOT_DIR}/salome_adm/cmake_files
34                       ${GUI_ROOT_DIR}/adm_local/cmake_files)
35
36 INCLUDE(SalomeMacros)
37
38 # User options
39 # ============
40 OPTION(SALOME_BUILD_DOC "Generate SALOME PARAMETRIC documentation" ON)
41
42 FIND_PACKAGE(SalomeKERNEL REQUIRED)
43 FIND_PACKAGE(SalomePython)
44 FIND_PACKAGE(SalomeOmniORB)
45 FIND_PACKAGE(SalomeOmniORBPy)
46 FIND_PACKAGE(SalomeSIP)
47 FIND_PACKAGE(SalomePyQt4)
48 IF(SALOME_BUILD_DOC)
49   FIND_PACKAGE(SalomeSphinx REQUIRED)
50 ENDIF()
51
52 SET(RESDIR ${SALOME_INSTALL_RES}/parametric)
53 SET(DOCDIR share/doc/salome/gui/PARAMETRIC)
54
55 ADD_SUBDIRECTORY(idl)
56 ADD_SUBDIRECTORY(src)
57 IF(SALOME_BUILD_DOC)
58   ADD_SUBDIRECTORY(doc)
59 ENDIF(SALOME_BUILD_DOC)
60 ADD_SUBDIRECTORY(resources)