Salome HOME
Windows compatibility.
[modules/gui.git] / tools / CMakeLists.txt
1 # Copyright (C) 2012-2016  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
20 ADD_SUBDIRECTORY(dlgfactory)
21
22 IF(SALOME_USE_VTKVIEWER)
23   ADD_SUBDIRECTORY(vtkEDFOverloads)            
24 ENDIF()
25
26 ##
27 # Python-based packages, part 1 (generic)
28 ##
29
30 IF(SALOME_USE_PYCONSOLE)
31   # Include sub-project PyConsole:
32   SET(TOOLS_EXPORT_NAME ${PROJECT_NAME})
33   SET(PYCONSOLE_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "")
34   SET(PYCONSOLE_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "") 
35   SET(PYCONSOLE_INSTALL_RES "${SALOME_GUI_INSTALL_RES_DATA}" CACHE PATH "")
36   OPTION(PYCONSOLE_BUILD_WITH_QT5 "Build PyConsole with Qt 5" ${SALOME_BUILD_WITH_QT5})
37      
38   ADD_SUBDIRECTORY(../tools/PyConsole) # will bring in PyInterp automatically
39 ENDIF(SALOME_USE_PYCONSOLE)
40
41 IF(SALOME_USE_PYVIEWER)
42   # Include sub-project PyEditor:
43   SET(TOOLS_EXPORT_NAME ${PROJECT_NAME})
44   SET(PYEDITOR_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "")
45   SET(PYEDITOR_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "")
46   SET(PYEDITOR_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "") 
47   SET(PYEDITOR_INSTALL_RES "${SALOME_GUI_INSTALL_RES_DATA}" CACHE PATH "")
48   OPTION(PYEDITOR_BUILD_WITH_QT5 "Build PyEditor with Qt 5" ${SALOME_BUILD_WITH_QT5})
49   ADD_SUBDIRECTORY(PyEditor)
50 ENDIF(SALOME_USE_PYVIEWER)
51