Salome HOME
0054504: Exception when accessing VTK renderer with libSalomePy module
[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 ##
23 # Python-based packages, part 1 (generic)
24 ##
25
26 IF(SALOME_USE_PYCONSOLE)
27   # Include sub-project PyConsole:
28   SET(TOOLS_EXPORT_NAME ${PROJECT_NAME})
29   SET(PYCONSOLE_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "")
30   SET(PYCONSOLE_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "") 
31   SET(PYCONSOLE_INSTALL_RES "${SALOME_GUI_INSTALL_RES_DATA}" CACHE PATH "")
32   OPTION(PYCONSOLE_BUILD_WITH_QT5 "Build PyConsole with Qt 5" ${SALOME_BUILD_WITH_QT5})
33      
34   ADD_SUBDIRECTORY(../tools/PyConsole) # will bring in PyInterp automatically
35 ENDIF(SALOME_USE_PYCONSOLE)
36
37 IF(SALOME_USE_PYVIEWER)
38   # Include sub-project PyEditor:
39   SET(TOOLS_EXPORT_NAME ${PROJECT_NAME})
40   SET(PYEDITOR_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "")
41   SET(PYEDITOR_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "")
42   SET(PYEDITOR_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "") 
43   SET(PYEDITOR_INSTALL_RES "${SALOME_GUI_INSTALL_RES_DATA}" CACHE PATH "")
44   OPTION(PYEDITOR_BUILD_WITH_QT5 "Build PyEditor with Qt 5" ${SALOME_BUILD_WITH_QT5})
45   ADD_SUBDIRECTORY(PyEditor)
46 ENDIF(SALOME_USE_PYVIEWER)
47
48 IF(COMPILER_SUPPORTS_CXX11)
49   SET(TOOLS_EXPORT_NAME ${PROJECT_NAME})
50   SET(REMOTEFILEBROWSER_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "")
51   SET(REMOTEFILEBROWSER_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "")
52   SET(REMOTEFILEBROWSER_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "")
53   ADD_SUBDIRECTORY(RemoteFileBrowser)
54 ENDIF(COMPILER_SUPPORTS_CXX11)