Salome HOME
Copyright update 2020
[modules/gui.git] / tools / CMakeLists.txt
1 # Copyright (C) 2012-2020  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      
33   ADD_SUBDIRECTORY(../tools/PyConsole) # will bring in PyInterp automatically
34
35   ADD_SUBDIRECTORY(CurvePlot)
36
37 ENDIF(SALOME_USE_PYCONSOLE)
38
39 IF(SALOME_USE_PYVIEWER)
40   # Include sub-project PyEditor:
41   SET(TOOLS_EXPORT_NAME ${PROJECT_NAME})
42   SET(PYEDITOR_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "")
43   SET(PYEDITOR_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "")
44   SET(PYEDITOR_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "") 
45   SET(PYEDITOR_INSTALL_RES "${SALOME_GUI_INSTALL_RES_DATA}" CACHE PATH "")
46   ADD_SUBDIRECTORY(PyEditor)
47 ENDIF(SALOME_USE_PYVIEWER)
48
49 IF(COMPILER_SUPPORTS_CXX11)
50   SET(TOOLS_EXPORT_NAME ${PROJECT_NAME})
51   SET(REMOTEFILEBROWSER_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "")
52   SET(REMOTEFILEBROWSER_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "")
53   SET(REMOTEFILEBROWSER_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "")
54   ADD_SUBDIRECTORY(RemoteFileBrowser)
55 ENDIF(COMPILER_SUPPORTS_CXX11)