1 # Copyright (C) 2012 EDF
3 # This file is part of SALOME PARAMETRIC module.
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.
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.
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/>.
18 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
21 SET(SHORT_VERSION "6.6")
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)
28 SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR})
30 MESSAGE(FATAL_ERROR "Environment variable GUI_ROOT_DIR not set")
31 ENDIF(NOT GUI_ROOT_DIR)
33 SET(CMAKE_MODULE_PATH ${KERNEL_ROOT_DIR}/salome_adm/cmake_files
34 ${GUI_ROOT_DIR}/adm_local/cmake_files)
37 FIND_PACKAGE(SalomePYTHON)
38 FIND_PACKAGE(SalomeSPHINX)
39 FIND_PACKAGE(SalomeSIP)
40 FIND_PACKAGE(SalomePYQT4)
42 INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
44 SET(BINDIR bin/salome)
45 SET(RESDIR share/salome/resources/parametric)
46 SET(LIBDIR lib/salome)
47 SET(PYTHONDIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/salome)
48 SET(DOCDIR share/doc/salome/gui/PARAMETRIC)
55 MESSAGE(STATUS "Sphinx not found, doc will not be built")
57 ADD_SUBDIRECTORY(resources)