]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Porting SALOME GUI to CMake
authorana <ana@opencascade.com>
Wed, 3 Oct 2012 12:11:36 +0000 (12:11 +0000)
committerana <ana@opencascade.com>
Wed, 3 Oct 2012 12:11:36 +0000 (12:11 +0000)
65 files changed:
CMakeLists.txt [new file with mode: 0755]
adm_local/CMakeLists.txt [new file with mode: 0755]
adm_local/cmake_files/CMakeLists.txt [new file with mode: 0755]
adm_local/cmake_files/FindQT4.cmake
adm_local/cmake_files/FindSIPPYQT.cmake
adm_local/unix/CMakeLists.txt [new file with mode: 0755]
adm_local/unix/config_files/CMakeLists.txt [new file with mode: 0755]
bin/CMakeLists.txt [new file with mode: 0755]
doc/CMakeLists.txt [new file with mode: 0755]
doc/salome/CMakeLists.txt [new file with mode: 0755]
doc/salome/gui/CMakeLists.txt [new file with mode: 0755]
doc/salome/tui/CMakeLists.txt [new file with mode: 0755]
idl/CMakeLists.txt [new file with mode: 0755]
resources/CMakeLists.txt [new file with mode: 0755]
src/CAF/CMakeLists.txt [new file with mode: 0755]
src/CAM/CMakeLists.txt [new file with mode: 0755]
src/CASCatch/CMakeLists.txt [new file with mode: 0755]
src/CMakeLists.txt [new file with mode: 0755]
src/DDS/CMakeLists.txt [new file with mode: 0755]
src/Event/CMakeLists.txt [new file with mode: 0755]
src/GLViewer/CMakeLists.txt [new file with mode: 0755]
src/GUI_PY/CMakeLists.txt [new file with mode: 0755]
src/GuiHelpers/CMakeLists.txt [new file with mode: 0755]
src/LightApp/CMakeLists.txt [new file with mode: 0755]
src/LogWindow/CMakeLists.txt [new file with mode: 0755]
src/OBJECT/CMakeLists.txt [new file with mode: 0755]
src/OCCViewer/CMakeLists.txt [new file with mode: 0755]
src/ObjBrowser/CMakeLists.txt [new file with mode: 0644]
src/OpenGLUtils/CMakeLists.txt [new file with mode: 0755]
src/Plot2d/CMakeLists.txt [new file with mode: 0755]
src/Prs/CMakeLists.txt [new file with mode: 0755]
src/PyConsole/CMakeLists.txt [new file with mode: 0755]
src/PyInterp/CMakeLists.txt [new file with mode: 0755]
src/QDS/CMakeLists.txt [new file with mode: 0755]
src/Qtx/CMakeLists.txt [new file with mode: 0755]
src/QxGraph/CMakeLists.txt [new file with mode: 0755]
src/QxScene/CMakeLists.txt [new file with mode: 0755]
src/ResExporter/CMakeLists.txt [new file with mode: 0755]
src/SALOME_PY/CMakeLists.txt [new file with mode: 0755]
src/SALOME_PYQT/CMakeLists.txt [new file with mode: 0755]
src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt [new file with mode: 0755]
src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt [new file with mode: 0755]
src/SALOME_PYQT/SalomePyQt/CMakeLists.txt [new file with mode: 0755]
src/SALOME_SWIG/CMakeLists.txt [new file with mode: 0755]
src/SOCC/CMakeLists.txt [new file with mode: 0755]
src/SPlot2d/CMakeLists.txt [new file with mode: 0755]
src/STD/CMakeLists.txt [new file with mode: 0755]
src/SUIT/CMakeLists.txt [new file with mode: 0644]
src/SUITApp/CMakeLists.txt [new file with mode: 0755]
src/SUPERVGraph/CMakeLists.txt [new file with mode: 0755]
src/SVTK/CMakeLists.txt [new file with mode: 0755]
src/SalomeApp/CMakeLists.txt [new file with mode: 0755]
src/SalomeApp/Test/CMakeLists.txt [new file with mode: 0755]
src/SalomeApp/Test/SalomeAppTest.hxx
src/SalomeApp/pluginsdemo/CMakeLists.txt [new file with mode: 0755]
src/Session/CMakeLists.txt [new file with mode: 0755]
src/Style/CMakeLists.txt [new file with mode: 0755]
src/TOOLSGUI/CMakeLists.txt [new file with mode: 0755]
src/TreeData/CMakeLists.txt [new file with mode: 0755]
src/TreeData/Test/CMakeLists.txt [new file with mode: 0755]
src/TreeData/Test/data.txt
src/VTKViewer/CMakeLists.txt [new file with mode: 0755]
src/ViewerTools/CMakeLists.txt [new file with mode: 0755]
tools/CMakeLists.txt [new file with mode: 0755]
tools/vtkEDFOverloads/CMakeLists.txt [new file with mode: 0755]

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..3284c05
--- /dev/null
@@ -0,0 +1,128 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4.7 FATAL_ERROR)
+
+IF(COMMAND cmake_policy)
+  cmake_policy(SET CMP0003 NEW)
+ENDIF(COMMAND cmake_policy)
+
+# Temporary definitions
+SET(DOXYGEN_IS_OK 0)
+IF(WINDOWS)
+ SET(CPPUNIT_IS_OK 0)
+ENDIF(WINDOWS)
+SET(GUI_ENABLE_CORBA ON)
+SET(ENABLE_VTKVIEWER ON)
+SET(ENABLE_SALOMEOBJECT ON)
+SET(ENABLE_OCCVIEWER ON)
+SET(ENABLE_GLVIEWER ON)
+SET(ENABLE_PLOT2DVIEWER ON)
+SET(ENABLE_PYCONSOLE ON)
+SET(ENABLE_SUPERVGRAPHVIEWER ON)
+SET(ENABLE_QXGRAPHVIEWER ON)
+
+ENABLE_TESTING()
+SET(VERSION "6.5.0")
+SET(VERSION_DEV "1")
+
+SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR})
+IF(KERNEL_ROOT_DIR)
+  STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindPLATFORM.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindPYTHON.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindOMNIORB.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindPTHREADS.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindMPI.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindHDF5.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindBOOST.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindLIBXML2.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindSWIG.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindCPPUNIT.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindDOXYGEN.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindLIBBATCH.cmake)
+  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindKERNEL.cmake)
+ENDIF(KERNEL_ROOT_DIR)
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindCAS.cmake)
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindQT4.cmake)
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindOPENGL.cmake)
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindVTK.cmake)
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindQWT.cmake)
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindSIPPYQT.cmake)
+
+EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; t=sys.argv[-1].split(\".\") ; t[:]=(int(elt) for elt in t) ; sys.stdout.write(\"0x%02x%02x%02x\"%tuple(t))" ${VERSION}
+  OUTPUT_VARIABLE XVERSION)
+
+SET(GUI_salomebin_BINS bin/salome)
+
+SET(GUI_salomelib_LIBS lib/salome)
+SET(GUI_paraviewlib_LIBS lib/paraview)
+
+SET(GUI_salomeinclude_HEADERS include/salome)
+
+SET(GUI_salomeres_DATA share/salome/resources/gui)
+
+SET(GUI_salomeres_SCRIPTS share/salome/resources/gui)
+
+SET(GUI_salomepluginsdir share/salome/plugins/gui)
+
+SET(GUI_salomescript_SCRIPTS bin/salome)
+
+SET(GUI_salomescript_DATA bin/salome)
+
+SET(GUI_salomescript_PYTHON bin/salome)
+SET(KERNEL_salomescript_PYTHON ${GUI_salomescript_PYTHON})
+
+SET(GUI_appliskel_SCRIPTS bin/salome/appliskel)
+
+SET(GUI_appliskel_PYTHON bin/salome/appliskel)
+
+SET(GUI_pythondir lib/python${PYTHON_VERSION}/site-packages)
+
+SET(GUI_salomepythondir ${GUI_pythondir}/salome)
+SET(KERNEL_salomepythondir ${GUI_salomepythondir})
+
+SET(GUI_sharedpkgpython_PYTHON ${GUI_salomepythondir}/shared_modules)
+
+SET(GUI_admlocalcmake adm_local/cmake_files)
+
+SET(IDLDIR)                        
+IF(GUI_ENABLE_CORBA)
+  SET(IDLDIR idl)
+ENDIF(GUI_ENABLE_CORBA)
+
+SET(SUBDIRS
+  ${IDLDIR}
+  adm_local
+  resources
+  src
+  doc
+  bin
+  tools
+)
+FOREACH(dir ${SUBDIRS})
+  ADD_SUBDIRECTORY(${dir})
+ENDFOREACH(dir ${SUBDIRS})
+
+SET(input ${CMAKE_CURRENT_SOURCE_DIR}/GUI_version.h.in)
+SET(output ${CMAKE_CURRENT_BINARY_DIR}/GUI_version.h)
+MESSAGE(STATUS "Creation of ${output}")
+CONFIGURE_FILE(${input} ${output} @ONLY)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/GUI_version.h DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/adm_local/CMakeLists.txt b/adm_local/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..846d584
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+ADD_SUBDIRECTORY(unix)
+ADD_SUBDIRECTORY(cmake_files)
diff --git a/adm_local/cmake_files/CMakeLists.txt b/adm_local/cmake_files/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..e3f73dc
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+# ===============================================================
+# Files to be installed
+# ===============================================================
+
+# These files are data, module or lib files
+SET(DATA
+  FindCAS.cmake
+  FindOPENGL.cmake
+  FindQT4.cmake
+  UseQT4EXT.cmake
+  FindQWT.cmake
+  FindSIPPYQT.cmake
+  FindVTK.cmake
+  FindGUI.cmake  
+)
+INSTALL(FILES ${DATA} DESTINATION ${GUI_admlocalcmake})
\ No newline at end of file
index bf713c01fb665d138b5158030c41531c817f6bea..10419225b63e574ab1e839df433825b855bc6f4d 100644 (file)
 
 INCLUDE(FindQt4)
 INCLUDE(UseQt4)
+SET(QT_INCLUDE_DIRS ${QT_INCLUDES})
 SET(DIRS)
 FOREACH(D ${QT_INCLUDES})
 SET(DIRS ${DIRS} -I${D})
 ENDFOREACH(D ${QT_INCLUDES})
-SET(QT_INCLUDES ${DIRS})
-SET(QT_INCLUDES ${QT_INCLUDES} -DQT_THREAD_SUPPORT)
+SET(QT_INCLUDES ${DIRS}) # to be removed
+SET(QT_INCLUDES ${QT_INCLUDES} -DQT_THREAD_SUPPORT) # to be removed
+SET(QT_DEFINITIONS -DQT_THREAD_SUPPORT)
 SET(QT_MT_LIBS ${QT_LIBRARIES} ${QT_QTXML_LIBRARY} ${QT_QTOPENGL_LIBRARY} ${QT_QTWEBKIT_LIBRARY})
 SET(QT_LIBS ${QT_MT_LIBS})
 SET(qt4_ldflags ${QT_MT_LIBS})
+SET(QT_LIBS ${QT_MT_LIBS})
 
 FIND_PROGRAM(QT_LRELEASE_EXECUTABLE lrelease)
index 6a76d6a7e7ae9bba8724b44b378cbc6e01b07ab0..e9f5e55d89c76803df518f9c6dc960a5c426552f 100644 (file)
@@ -25,9 +25,11 @@ GET_FILENAME_COMPONENT(SIP_ROOT ${SIP_ROOT} PATH)
 GET_FILENAME_COMPONENT(SIP_ROOT ${SIP_ROOT} PATH)
 ENDIF(SIP_ROOT)
 
-SET(SIP_INCLUDES -I${SIP_ROOT}/include/python${PYTHON_VERSION})
+SET(SIP_INCLUDES -I${SIP_ROOT}/include/python${PYTHON_VERSION})  # to be removed
+SET(SIP_INCLUDE_DIRS ${SIP_ROOT}/include/python${PYTHON_VERSION})
 IF(WINDOWS)
-  SET(SIP_INCLUDES ${SIP_INCLUDES} -I${SIP_ROOT}/include)
+  SET(SIP_INCLUDES ${SIP_INCLUDES} -I${SIP_ROOT}/include)        # to be removed
+  SET(SIP_INCLUDE_DIRS ${SIP_INCLUDE_DIRS} ${SIP_ROOT}/include)
 ENDIF(WINDOWS)
 
 IF(WINDOWS)
diff --git a/adm_local/unix/CMakeLists.txt b/adm_local/unix/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..b793cd8
--- /dev/null
@@ -0,0 +1,20 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE\r
+#\r
+# This library is free software; you can redistribute it and/or\r
+# modify it under the terms of the GNU Lesser General Public\r
+# License as published by the Free Software Foundation; either\r
+# version 2.1 of the License.\r
+#\r
+# This library is distributed in the hope that it will be useful,\r
+# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+# Lesser General Public License for more details.\r
+#\r
+# You should have received a copy of the GNU Lesser General Public\r
+# License along with this library; if not, write to the Free Software\r
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
+#\r
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
+#\r
+\r
+ADD_SUBDIRECTORY(config_files)\r
diff --git a/adm_local/unix/config_files/CMakeLists.txt b/adm_local/unix/config_files/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..49680d8
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+
+SET(dist_admlocalm4_DATA
+  check_disable_Corba.m4
+  check_GLViewer.m4
+  check_GUI.m4
+  check_msg2qm.m4
+  check_OCCViewer.m4
+  check_opengl.m4
+  check_Plot2dViewer.m4
+  check_PyConsole.m4
+  check_pyqt.m4
+  check_qt.m4
+  check_qwt.m4
+  check_SalomeObject.m4
+  check_sip.m4
+  check_SupervGraphViewer.m4
+  check_VTKViewer.m4
+  check_QxGraphViewer.m4
+  check_TestRecorder.m4
+  check_salome_version.m4
+)
+            
+FOREACH(f ${dist_admlocalm4_DATA})
+  SET(DEST adm_local/unix/config_files)
+  INSTALL(FILES ${f} DESTINATION ${DEST})
+ENDFOREACH(f ${dist_admlocalm4_DATA})
diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..b31d05b
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
+
+CONFIGURE_FILE(VERSION.in VERSION @ONLY)
+
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION DESTINATION ${GUI_salomebin_BINS})
+
+# ===============================================================
+# Files to be installed
+# ===============================================================
+
+SET(SCRIPTS runLightSalome.csh runLightSalome.sh gui_setenv.py)
+SALOME_INSTALL_SCRIPTS("${SCRIPTS}" ${GUI_salomescript_SCRIPTS})
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..49f4248
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+ADD_SUBDIRECTORY(salome)
diff --git a/doc/salome/CMakeLists.txt b/doc/salome/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..4f305c8
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+
+SET(SUBDIRS
+  tui
+  gui
+)
+FOREACH(dir ${SUBDIRS})
+  ADD_SUBDIRECTORY(${dir})
+ENDFOREACH(dir ${SUBDIRS})
+            
diff --git a/doc/salome/gui/CMakeLists.txt b/doc/salome/gui/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..2ea1bad
--- /dev/null
@@ -0,0 +1,57 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+SET(top_builddir
+ ${CMAKE_BINARY_DIR}
+)
+SET(top_srcdir 
+ ${CMAKE_SOURCE_DIR}
+)
+SET(srcdir 
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
+SET(builddir 
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+SET(datadir
+ ${CMAKE_INSTALL_PREFIX}/share
+)
+SET(docdir 
+ ${datadir}/doc/salome
+)
+            
+
+SET(input ${CMAKE_CURRENT_SOURCE_DIR}/doxyfile.in)
+SET(output ${CMAKE_CURRENT_BINARY_DIR}/doxyfile)
+MESSAGE(STATUS "Creation of ${output}")
+CONFIGURE_FILE(${input} ${output})
+
+SET(input ${CMAKE_CURRENT_SOURCE_DIR}/static/header.html.in)
+SET(output ${CMAKE_CURRENT_BINARY_DIR}/static/header.html)
+MESSAGE(STATUS "Creation of ${output}")
+CONFIGURE_FILE(${input} ${output})
+                
+ADD_CUSTOM_TARGET(usr_docs ${DOXYGEN_EXECUTABLE} 
+  COMMAND ${PYTHON_EXECUTABLE} -c "import shutil, sys; shutil.rmtree(r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/GUI''', True); shutil.copytree(r'''${CMAKE_CURRENT_BINARY_DIR}/GUI''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/GUI'''); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/GUI''')"
+  VERBATIM 
+  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}             
+)
diff --git a/doc/salome/tui/CMakeLists.txt b/doc/salome/tui/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..0674e53
--- /dev/null
@@ -0,0 +1,57 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+SET(top_builddir
+ ${CMAKE_BINARY_DIR}
+)
+SET(top_srcdir 
+ ${CMAKE_SOURCE_DIR}
+)
+SET(srcdir 
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
+SET(builddir 
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+SET(datadir
+ ${CMAKE_INSTALL_PREFIX}/share
+)
+SET(docdir 
+${datadir}/doc/salome
+)
+            
+SET(input ${CMAKE_CURRENT_SOURCE_DIR}/doxyfile.in)
+SET(output ${CMAKE_CURRENT_BINARY_DIR}/doxyfile)
+MESSAGE(STATUS "Creation of ${output}")
+CONFIGURE_FILE(${input} ${output})
+               
+SET(input ${CMAKE_CURRENT_SOURCE_DIR}/static/header.html.in)
+SET(output ${CMAKE_CURRENT_BINARY_DIR}/static/header.html)
+MESSAGE(STATUS "Creation of ${output}")
+CONFIGURE_FILE(${input} ${output})
+                
+ADD_CUSTOM_TARGET(dev_docs ${DOXYGEN_EXECUTABLE}
+  COMMAND ${PYTHON_EXECUTABLE} -c "import shutil, sys; shutil.rmtree(r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/tui/GUI''', True); shutil.copytree(r'''${CMAKE_CURRENT_BINARY_DIR}/GUI''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/tui/GUI'''); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/tui/GUI''')" 
+  VERBATIM 
+  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}             
+)
+
diff --git a/idl/CMakeLists.txt b/idl/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..82e0c8f
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/UseOMNIORB.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${OMNIORB_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+SET(SalomeIDLGUI_IDLSOURCES
+  SalomeApp_Engine.idl
+)
+
+SET(IDL_INCLUDE_DIRS
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${KERNEL_ROOT_DIR}/idl/salome
+)
+
+SET(TYPE SHARED)
+IF(WINDOWS)
+  SET(TYPE STATIC)
+ENDIF(WINDOWS)
+
+OMNIORB_ADD_MODULE(SalomeIDLGUI "${SalomeIDLGUI_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" ${TYPE})
+TARGET_LINK_LIBRARIES(SalomeIDLGUI ${CORBA_LIBS})
+SET_TARGET_PROPERTIES(SalomeIDLGUI PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS}")
+            
+INSTALL(TARGETS SalomeIDLGUI DESTINATION ${GUI_salomelib_LIBS})
diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..7760cce
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+# add resource files here ...
+#
diff --git a/src/CAF/CMakeLists.txt b/src/CAF/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..56f7db3
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${PTHREAD_INCLUDE_DIRS}
+  ${CAS_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+)
+
+SET(COMMON_LIBS
+  qtx 
+  suit 
+  std
+  ${QT_MT_LIBS} 
+  ${CAS_OCAF} 
+  ${CAS_OCAFVIS}
+)
+
+SET(GUI_HEADERS CAF_Application.h CAF_Operation.h CAF_Study.h)
+QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
+SET(caf_SOURCES
+  CAF_Application.cxx
+  CAF_Operation.cxx
+  CAF_Study.cxx
+  CAF_Tools.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/CAF_msg_en.ts
+  resources/CAF_msg_fr.ts
+)
+
+ADD_LIBRARY(caf SHARED ${caf_SOURCES} ${GUI_HEADERS})
+SET_TARGET_PROPERTIES(caf PROPERTIES COMPILE_FLAGS "${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(caf ${COMMON_LIBS})
+INSTALL(TARGETS caf DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
diff --git a/src/CAM/CMakeLists.txt b/src/CAM/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..b79fea0
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+)
+
+SET(COMMON_LIBS
+  qtx 
+  suit 
+  std
+  ${QT_MT_LIBS}
+)
+
+SET(CAM_HEADERS CAM_Application.h CAM_Module.h CAM_Study.h CAM_DataModel.h)
+QT4_WRAP_CPP(CAM_HEADERS_MOC ${CAM_HEADERS})
+
+SET(CAM_SOURCES
+  CAM_Application.cxx
+  CAM_DataModel.cxx
+  CAM_DataObject.cxx
+  CAM_Module.cxx
+  CAM_Study.cxx
+)
+
+SET(CAMTS_SOURCES
+  resources/CAM_msg_en.ts
+  resources/CAM_msg_fr.ts
+)
+
+ADD_LIBRARY(CAM SHARED ${CAM_SOURCES} ${CAM_HEADERS_MOC})
+SET_TARGET_PROPERTIES(CAM PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(CAM ${COMMON_LIBS})
+INSTALL(TARGETS CAM DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${CAMTS_SOURCES}" "${GUI_salomeres_DATA}")
diff --git a/src/CASCatch/CMakeLists.txt b/src/CASCatch/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..9692951
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${PTHREAD_INCLUDE_DIRS}
+  ${CAS_INCLUDE_DIRS}
+)
+
+SET(CASCatch_SOURCES
+  CASCatch_CatchSignals.cxx
+  CASCatch_ErrorHandler.cxx
+  CASCatch_Failure.cxx
+)
+
+ADD_LIBRARY(CASCatch SHARED ${CASCatch_SOURCES})
+SET_TARGET_PROPERTIES(CASCatch PROPERTIES COMPILE_FLAGS "${CAS_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(CASCatch ${CAS_KERNEL})
+INSTALL(TARGETS CASCatch DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
+INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${GUI_salomeinclude_HEADERS})
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..fe69dae
--- /dev/null
@@ -0,0 +1,165 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+##
+# Common packages
+##
+SET(SUBDIRS_COMMON
+  CASCatch
+  Qtx
+  Style
+  DDS
+  QDS
+  ObjBrowser
+  SUIT
+  SUITApp
+  STD
+  CAF
+  CAM
+  LogWindow
+  Prs
+  Event
+  OpenGLUtils
+  GUI_PY
+)
+
+##
+# SALOME object
+##
+IF(ENABLE_SALOMEOBJECT)
+  SET(SUBDIRS_OBJECT OBJECT)
+ENDIF(ENABLE_SALOMEOBJECT)
+
+##
+# GL viewer
+##
+IF(ENABLE_GLVIEWER)
+  SET(SUBDIRS_GLVIEWER GLViewer)
+ENDIF(ENABLE_GLVIEWER)
+
+##
+# VTK viewer
+##
+IF(ENABLE_VTKVIEWER)
+  SET(SUBDIRS_VTKVIEWER VTKViewer)
+
+  IF(ENABLE_SALOMEOBJECT)
+    SET(SUBDIRS_VTKVIEWER ${SUBDIRS_VTKVIEWER} SVTK)
+    SET(SUBDIRS_VIEWERTOOLSViewerTools)
+  ENDIF(ENABLE_SALOMEOBJECT)
+ENDIF(ENABLE_VTKVIEWER)
+
+##
+# OCC viewer
+##
+IF(ENABLE_OCCVIEWER)
+  SET(SUBDIRS_OCCVIEWER OCCViewer)
+  SET(SUBDIRS_VIEWERTOOLS ViewerTools)
+  
+  IF(ENABLE_SALOMEOBJECT)
+    SET(SUBDIRS_OCCVIEWER ${SUBDIRS_OCCVIEWER} SOCC)
+  ENDIF(ENABLE_SALOMEOBJECT)
+ENDIF(ENABLE_OCCVIEWER)
+
+##
+# Plot2d viewer
+##
+IF(ENABLE_PLOT2DVIEWER)
+  SET(SUBDIRS_PLOT2DVIEWER  Plot2d)
+
+  IF(ENABLE_SALOMEOBJECT)
+    SET(SUBDIRS_PLOT2DVIEWER ${SUBDIRS_PLOT2DVIEWER} SPlot2d)
+  ENDIF(ENABLE_SALOMEOBJECT)
+ENDIF(ENABLE_PLOT2DVIEWER)
+
+##
+# SUPERV graph viewer
+##
+IF(ENABLE_SUPERVGRAPHVIEWER) 
+  SET(SUBDIRS_SUPERVGRAPHVIEWER SUPERVGraph)
+ENDIF(ENABLE_SUPERVGRAPHVIEWER)
+
+##
+# Qx scene viewer
+##
+###VSR: QxGraph has been replaced by QxScene
+###SUBDIRS_QXGRAPHVIEWER = QxGraph
+IF(ENABLE_QXGRAPHVIEWER)
+  SET(SUBDIRS_QXGRAPHVIEWER QxScene)
+ENDIF(ENABLE_QXGRAPHVIEWER)
+
+##
+# Python console (base)
+##
+IF(ENABLE_PYCONSOLE) 
+  SET(SUBDIRS_PYCONSOLE PyInterp PyConsole)
+ENDIF(ENABLE_PYCONSOLE)
+
+##
+# Light SALOME packages
+##
+SET(SUBDIRS_LIGHT
+  LightApp
+  ResExporter
+)
+
+##
+# Full (CORBA) SALOME packages
+##
+IF(GUI_ENABLE_CORBA)
+  SET(SUBDIRS_CORBA
+    TOOLSGUI
+    Session
+    SalomeApp
+    GuiHelpers
+    TreeData
+  )
+ENDIF(GUI_ENABLE_CORBA)
+
+##
+# Extra Python packages
+##
+IF(ENABLE_PYCONSOLE)
+  SET(SUBDIRS_PY_LIGHT
+    SALOME_SWIG
+    SALOME_PY
+    SALOME_PYQT
+  )
+ENDIF(ENABLE_PYCONSOLE)
+
+SET(SUBDIRS
+  ${SUBDIRS_COMMON}
+  ${SUBDIRS_OBJECT}
+  ${SUBDIRS_VIEWERTOOLS}
+  ${SUBDIRS_GLVIEWER}
+  ${SUBDIRS_VTKVIEWER}
+  ${SUBDIRS_OCCVIEWER}
+  ${SUBDIRS_PLOT2DVIEWER}
+  ${SUBDIRS_SUPERVGRAPHVIEWER}
+  ${SUBDIRS_QXGRAPHVIEWER}
+  ${SUBDIRS_PYCONSOLE}
+  ${SUBDIRS_LIGHT}
+  ${SUBDIRS_CORBA}
+  ${SUBDIRS_PY_LIGHT}
+)
+
+FOREACH(dir ${SUBDIRS})
+ ADD_SUBDIRECTORY(${dir})
+ENDFOREACH(dir ${SUBDIRS})
+            
diff --git a/src/DDS/CMakeLists.txt b/src/DDS/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..79fe985
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${PTHREAD_INCLUDE_DIRS}
+  ${CAS_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+)
+
+SET(DDS_SOURCES
+  DDS_DicGroup.cxx
+  DDS_DicItem.cxx
+  DDS_Dictionary.cxx
+  DDS_KeyWords.cxx
+)
+
+ADD_LIBRARY(DDS SHARED ${DDS_SOURCES})
+SET_TARGET_PROPERTIES(DDS PROPERTIES COMPILE_FLAGS "${CAS_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(DDS ${CAS_KERNEL} ${CAS_OCAF})
+INSTALL(TARGETS DDS DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+
diff --git a/src/Event/CMakeLists.txt b/src/Event/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..0e2110f
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+SET(Event_SOURCES
+  ${QT_INCLUDE_DIRS}
+  SALOME_Event.cxx
+  SALOME_EventFilter.cxx
+)
+
+ADD_LIBRARY(Event SHARED ${Event_SOURCES})
+SET_TARGET_PROPERTIES(Event PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(Event ${QT_MT_LIBS})
+INSTALL(TARGETS Event DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/GLViewer/CMakeLists.txt b/src/GLViewer/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..9a455f4
--- /dev/null
@@ -0,0 +1,83 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(COMMON_LIBS
+  suit 
+  ${QT_MT_LIBS} 
+  ${CAS_KERNEL} 
+  ${OGL_LIBS}
+)
+
+SET(GUI_HEADERS GLViewer_Selector.h GLViewer_Selector2d.h GLViewer_ToolTip.h GLViewer_ViewFrame.h GLViewer_ViewManager.h GLViewer_ViewPort.h GLViewer_ViewPort2d.h GLViewer_Viewer.h GLViewer_Viewer2d.h GLViewer_Widget.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(GLViewer_SOURCES
+  GLViewer_AspectLine.cxx
+  GLViewer_BaseDrawers.cxx
+  GLViewer_BaseObjects.cxx
+  GLViewer_Compass.cxx
+  GLViewer_Context.cxx
+  GLViewer_CoordSystem.cxx
+  GLViewer_Drawer.cxx
+  GLViewer_Geom.cxx
+  GLViewer_Grid.cxx
+  GLViewer_Group.cxx
+  GLViewer_MimeData.cxx
+  GLViewer_Object.cxx
+  GLViewer_Selector.cxx
+  GLViewer_Selector2d.cxx
+  GLViewer_Text.cxx
+  GLViewer_Tools.cxx
+  GLViewer_ToolTip.cxx
+  GLViewer_ViewFrame.cxx
+  GLViewer_ViewManager.cxx
+  GLViewer_ViewPort.cxx
+  GLViewer_ViewPort2d.cxx
+  GLViewer_Viewer.cxx
+  GLViewer_Viewer2d.cxx
+  GLViewer_Widget.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/GLViewer_images.ts
+  resources/GLViewer_msg_en.ts
+  resources/GLViewer_msg_fr.ts
+)
+
+ADD_LIBRARY(GLViewer SHARED ${GLViewer_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(GLViewer PROPERTIES COMPILE_FLAGS "${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(GLViewer ${COMMON_LIBS})
+INSTALL(TARGETS GLViewer DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/GUI_PY/CMakeLists.txt b/src/GUI_PY/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..7eb45ea
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CMAKE_CURRENT_BINARY_DIR}
+)
+# Python modules to be installed
+SET(mypkgpython_PYTHON
+  __init__.py
+  selectvars.py
+  genericdialog.py
+  mytestdialog.py
+  helper.py
+)
+SALOME_INSTALL_SCRIPTS("${mypkgpython_PYTHON}" ${GUI_salomepythondir}/salome/gui)
+
+SET(PYUIC_FILES
+  SelectVarsDialog_ui.py
+  genericdialog_ui.py
+  mytestdialog_ui.py
+)
+
+FOREACH(output ${PYUIC_FILES})
+  STRING(REPLACE "_ui.py" ".ui" input ${output})
+  SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+  SET(output ${CMAKE_CURRENT_BINARY_DIR}/${output})
+  ADD_CUSTOM_COMMAND(
+    OUTPUT ${output}
+    COMMAND ${PYUIC_EXECUTABLE} -o ${output} ${input}
+    MAIN_DEPENDENCY ${input}
+  )
+ENDFOREACH(output ${PYUIC_FILES})
+
+ADD_CUSTOM_TARGET(BUILD_PY_UI_FILES ALL DEPENDS ${PYUIC_FILES})
+
+FOREACH(output ${PYUIC_FILES})
+  INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION ${GUI_salomepythondir}/salome/gui)
+ENDFOREACH(output ${PYUIC_FILES})
\ No newline at end of file
diff --git a/src/GuiHelpers/CMakeLists.txt b/src/GuiHelpers/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..1a1cacd
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SalomeApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+)
+
+SET(GUI_HEADERS StandardApp_Module.hxx)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+SET(SalomeGuiHelpers_SOURCES
+  SALOME_GuiServices.cxx
+  SALOME_AppStudyEditor.cxx
+  StandardApp_Module.cxx
+)
+
+ADD_LIBRARY(SalomeGuiHelpers SHARED ${SalomeGuiHelpers_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SalomeGuiHelpers PROPERTIES COMPILE_FLAGS "${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(SalomeGuiHelpers SalomeApp ${SalomeKernelHelpers} ${CORBA_LIBS})
+INSTALL(TARGETS SalomeGuiHelpers DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
+INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/LightApp/CMakeLists.txt b/src/LightApp/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..737c58f
--- /dev/null
@@ -0,0 +1,260 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${HDF5_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${QWT_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../ObjBrowser
+  ${CMAKE_CURRENT_SOURCE_DIR}/../LogWindow
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Event
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Style
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CASCatch
+)
+
+SET(COMMON_FLAGS "${PYTHON_DEFINITIONS} ${HDF5_DEFINITIONS} ${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+IF(NOT WINDOWS)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -Wno-deprecated")
+ENDIF(NOT WINDOWS)
+
+SET(COMMON_LIBS 
+  ${QT_LIBS}
+  suit
+  std
+  CAM
+  LogWindow
+  ${CAS_KERNEL}
+  SalomePrs
+  ObjBrowser
+  SalomeStyle
+  Event
+  ${HDF5_LIBS}
+  ${KERNEL_LDFLAGS}
+  ${SalomeHDFPersist}
+  ${SALOMELocalTrace}
+)
+
+SET(GUI_HEADERS   
+  LightApp_AboutDlg.h
+  LightApp_Application.h
+  LightApp_DataModel.h
+  LightApp_Dialog.h
+  LightApp_OBSelector.h
+  LightApp_Operation.h
+  LightApp_Module.h
+  LightApp_ModuleAction.h
+  LightApp_ModuleDlg.h
+  LightApp_NameDlg.h
+  LightApp_SelectionMgr.h
+  LightApp_ShowHideOp.h
+  LightApp_Study.h
+  LightApp_SwitchOp.h
+  LightApp_Preferences.h
+  LightApp_PreferencesDlg.h
+  LightApp_WgViewModel.h
+)
+
+SET(RCCS LightApp.qrc)
+
+SET(LightApp_SOURCES
+  LightApp_AboutDlg.cxx
+  LightApp_Application.cxx
+  LightApp_DataModel.cxx
+  LightApp_DataObject.cxx
+  LightApp_DataOwner.cxx
+  LightApp_DataSubOwner.cxx
+  LightApp_Dialog.cxx
+  LightApp_Displayer.cxx
+  LightApp_Driver.cxx
+  LightApp_EventFilter.cxx
+  LightApp_HDFDriver.cxx
+  LightApp_Module.cxx
+  LightApp_ModuleAction.cxx
+  LightApp_ModuleDlg.cxx
+  LightApp_NameDlg.cxx
+  LightApp_OBSelector.cxx
+  LightApp_Operation.cxx
+  LightApp_Selection.cxx
+  LightApp_SelectionMgr.cxx
+  LightApp_ShowHideOp.cxx
+  LightApp_Study.cxx
+  LightApp_SwitchOp.cxx
+  LightApp_Preferences.cxx
+  LightApp_PreferencesDlg.cxx
+  LightApp_WgViewModel.cxx
+  LightApp_FullScreenHelper.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/LightApp_images.ts
+  resources/LightApp_msg_en.ts
+  resources/LightApp_msg_fr.ts
+)
+
+SET(COMMON_HEADERS_H 
+  LightApp.h
+  LightApp_AboutDlg.h
+  LightApp_Application.h
+  LightApp_DataModel.h
+  LightApp_DataObject.h
+  LightApp_DataOwner.h
+  LightApp_DataSubOwner.h
+  LightApp_Dialog.h
+  LightApp_Displayer.h
+  LightApp_Driver.h
+  LightApp_EventFilter.h
+  LightApp_HDFDriver.h
+  LightApp_Module.h
+  LightApp_ModuleAction.h
+  LightApp_ModuleDlg.h
+  LightApp_NameDlg.h
+  LightApp_OBSelector.h
+  LightApp_Operation.h
+  LightApp_Selection.h
+  LightApp_SelectionMgr.h
+  LightApp_ShowHideOp.h
+  LightApp_Study.h
+  LightApp_SwitchOp.h
+  LightApp_Preferences.h
+  LightApp_PreferencesDlg.h
+  LightApp_UpdateFlags.h
+  LightApp_WgViewModel.h
+  LightApp_FullScreenHelper.h
+)
+
+IF(ENABLE_PYCONSOLE)
+  INCLUDE_DIRECTORIES(
+  ${PYTHON_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../PyConsole
+  ${CMAKE_CURRENT_SOURCE_DIR}/../PyInterp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUITApp
+  )
+  SET(COMMON_FLAGS "${COMMON_FLAGS} ${PYTHON_DEFINITIONS}")
+  SET(COMMON_HEADERS_H ${COMMON_HEADERS_H} LightApp_PyInterp.h)
+  SET(LightApp_SOURCES ${LightApp_SOURCES} LightApp_PyInterp.cxx)
+  SET(COMMON_LIBS ${COMMON_LIBS} PyInterp PyConsole SUITApp)
+ELSE(ENABLE_PYCONSOLE)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_PYCONSOLE")
+ENDIF(ENABLE_PYCONSOLE)
+
+IF(ENABLE_VTKVIEWER)
+  INCLUDE_DIRECTORIES(
+  ${VTK_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../VTKViewer
+  )
+  SET(COMMON_LIBS ${COMMON_LIBS} ${VTK_LIBS} VTKViewer)
+  IF(ENABLE_SALOMEOBJECT)
+    SET(COMMON_HEADERS_H ${COMMON_HEADERS_H} LightApp_VTKSelector.h)
+    SET(LightApp_SOURCES ${LightApp_SOURCES} LightApp_VTKSelector.cxx)
+    SET(GUI_HEADERS ${GUI_HEADERS} LightApp_VTKSelector.h)
+    SET(COMMON_LIBS ${COMMON_LIBS} SVTK)
+  ENDIF(ENABLE_SALOMEOBJECT)
+ELSE(ENABLE_VTKVIEWER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_VTKVIEWER")
+ENDIF(ENABLE_VTKVIEWER)
+
+IF(ENABLE_OCCVIEWER)
+  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../OCCViewer)
+  SET(COMMON_HEADERS_H ${COMMON_HEADERS_H} LightApp_OCCSelector.h)
+  SET(LightApp_SOURCES ${LightApp_SOURCES} LightApp_OCCSelector.cxx)
+  SET(COMMON_LIBS ${COMMON_LIBS} OCCViewer)
+  SET(GUI_HEADERS ${GUI_HEADERS} LightApp_OCCSelector.h)
+ELSE(ENABLE_OCCVIEWER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_OCCVIEWER")
+ENDIF(ENABLE_OCCVIEWER)
+
+IF(ENABLE_GLVIEWER)
+  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../GLViewer)
+  SET(COMMON_HEADERS_H ${COMMON_HEADERS_H} LightApp_GLSelector.h)
+  SET(LightApp_SOURCES ${LightApp_SOURCES} LightApp_GLSelector.cxx)
+  SET(GUI_HEADERS ${GUI_HEADERS} LightApp_GLSelector.h)
+  SET(COMMON_LIBS ${COMMON_LIBS} GLViewer)
+ELSE(ENABLE_GLVIEWER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_GLVIEWER")
+ENDIF(ENABLE_GLVIEWER)
+
+IF(ENABLE_PLOT2DVIEWER)
+  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../Plot2d)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} ${QWT_DEFINITIONS}")
+  SET(COMMON_HEADERS_H ${COMMON_HEADERS_H} LightApp_Plot2dSelector.h)
+  SET(LightApp_SOURCES ${LightApp_SOURCES} LightApp_Plot2dSelector.cxx)
+  SET(GUI_HEADERS ${GUI_HEADERS} LightApp_Plot2dSelector.h)
+  SET(COMMON_LIBS ${COMMON_LIBS} Plot2d)
+ELSE(ENABLE_PLOT2DVIEWER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_PLOT2DVIEWER")
+ENDIF(ENABLE_PLOT2DVIEWER)
+
+IF(ENABLE_SUPERVGRAPHVIEWER)
+  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../SUPERVGraph)
+  SET(COMMON_LIBS ${COMMON_LIBS} SUPERVGraph)
+ELSE(ENABLE_SUPERVGRAPHVIEWER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_SUPERVGRAPHVIEWER")
+ENDIF(ENABLE_SUPERVGRAPHVIEWER)
+
+IF(ENABLE_QXGRAPHVIEWER)
+  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../QxScene)
+  SET(COMMON_LIBS ${COMMON_LIBS} QxScene)
+ELSE(ENABLE_QXGRAPHVIEWER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_QXGRAPHVIEWER")
+ENDIF(ENABLE_QXGRAPHVIEWER)
+
+IF(ENABLE_SALOMEOBJECT)
+  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT)
+  SET(COMMON_LIBS ${COMMON_LIBS} SalomeObject)
+  IF(ENABLE_PLOT2DVIEWER)
+    INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../SPlot2d)
+    SET(COMMON_LIBS ${COMMON_LIBS} SPlot2d)
+  ENDIF(ENABLE_PLOT2DVIEWER)
+  IF(ENABLE_OCCVIEWER)
+    INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../SOCC)
+    SET(COMMON_LIBS ${COMMON_LIBS} SOCC)
+  ENDIF(ENABLE_OCCVIEWER)
+
+  IF(ENABLE_VTKVIEWER)
+    INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../SVTK)
+  ENDIF(ENABLE_VTKVIEWER)
+ELSE(ENABLE_SALOMEOBJECT)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DDISABLE_SALOMEOBJECT")
+ENDIF(ENABLE_SALOMEOBJECT)
+    
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+QT4_ADD_RESOURCES(RCC_SRCS ${RCCS})
+ADD_LIBRARY(LightApp SHARED ${LightApp_SOURCES} ${GUI_HEADERS_MOC} ${RCC_SRCS})
+SET_TARGET_PROPERTIES(LightApp PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(LightApp ${COMMON_LIBS})
+INSTALL(TARGETS LightApp DESTINATION ${GUI_salomelib_LIBS})
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+SET(GUI_DATA ${GUIPNG_DATA} ${CMAKE_CURRENT_SOURCE_DIR}/resources/LightApp.ini ${CMAKE_CURRENT_SOURCE_DIR}/resources/LightApp.xml)
+INSTALL(FILES ${GUI_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/LogWindow/CMakeLists.txt b/src/LogWindow/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..4d0df72
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(GUI_HEADERS LogWindow.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(GUITS_SOURCES
+  resources/LogWindow_msg_en.ts
+  resources/LogWindow_msg_fr.ts
+)
+
+ADD_LIBRARY(LogWindow SHARED LogWindow.cxx ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(LogWindow PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(LogWindow qtx suit ${QT_MT_LIBS})
+INSTALL(TARGETS LogWindow DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
diff --git a/src/OBJECT/CMakeLists.txt b/src/OBJECT/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..96764f5
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${PTHREAD_INCLUDE_DIRS}
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+)
+
+SET(COMMON_LIBS
+  ${QT_LIBS}
+  ${CAS_LDPATH}
+  ${TKV3d}
+)
+
+SET(SalomeObject_SOURCES
+  SALOME_InteractiveObject.cxx
+  SALOME_AISShape.cxx
+  SALOME_AISObject.cxx
+  SALOME_ListIO_0.cxx
+  SALOME_ListIteratorOfListIO_0.cxx
+  SALOME_ListNodeOfListIO_0.cxx
+  SALOME_Filter.cxx
+  SALOME_TypeFilter.cxx
+  SALOME_DataMapOfIOMapOfInteger_0.cxx
+  SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx
+  SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx
+)
+
+ADD_LIBRARY(SalomeObject SHARED ${SalomeObject_SOURCES})
+SET_TARGET_PROPERTIES(SalomeObject PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(SalomeObject ${COMMON_LIBS})
+INSTALL(TARGETS SalomeObject DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
+INSTALL(FILES ${COMMON_HEADERS_HXX} SALOME_Selection.h DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/OCCViewer/CMakeLists.txt b/src/OCCViewer/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..04f4064
--- /dev/null
@@ -0,0 +1,122 @@
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${OGL_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../ViewerTools
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OpenGLUtils
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CASCatch
+)
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS
+  qtx
+  suit
+  ViewerTools
+  OpenGLUtils
+  ${OGL_LIBS}
+  ${QT_MT_LIBS}
+  ${CAS_KERNEL}
+  ${CAS_VIEWER}
+)
+
+SET(GUI_HEADERS 
+  OCCViewer_AISSelector.h
+  OCCViewer_ViewModel.h
+  OCCViewer_ViewPort3d.h
+  OCCViewer_ViewPort.h
+  OCCViewer_ViewSketcher.h
+  OCCViewer_ViewWindow.h
+  OCCViewer_ViewManager.h
+  OCCViewer_CreateRestoreViewDlg.h
+  OCCViewer_SetRotationPointDlg.h
+  OCCViewer_ClippingDlg.h
+  OCCViewer_AxialScaleDlg.h
+  OCCViewer_FontWidget.h
+  OCCViewer_CubeAxesDlg.h
+  OCCViewer_ToolTip.h
+  OCCViewer_ViewFrame.h
+)
+QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
+
+SET(OCCViewer_SOURCES
+  OCCViewer_AISSelector.cxx
+  OCCViewer_ViewManager.cxx
+  OCCViewer_ViewModel.cxx
+  OCCViewer_ViewPort3d.cxx
+  OCCViewer_ViewPort.cxx
+  OCCViewer_ViewSketcher.cxx
+  OCCViewer_ViewWindow.cxx
+  OCCViewer_VService.cxx
+  OCCViewer_CreateRestoreViewDlg.cxx
+  OCCViewer_SetRotationPointDlg.cxx
+  OCCViewer_ClippingDlg.cxx
+  OCCViewer_AxialScaleDlg.cxx
+  OCCViewer_Trihedron.cxx
+  OCCViewer_FontWidget.cxx
+  OCCViewer_CubeAxesDlg.cxx
+  OCCViewer_ToolTip.cxx
+  OCCViewer_ViewFrame.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/OCCViewer_images.ts
+  resources/OCCViewer_msg_en.ts
+  resources/OCCViewer_msg_fr.ts
+)
+
+ADD_LIBRARY(OCCViewer SHARED ${OCCViewer_SOURCES} ${GUI_HEADERS})
+SET_TARGET_PROPERTIES(OCCViewer PROPERTIES COMPILE_FLAGS ${COMMON_FLAGS})
+TARGET_LINK_LIBRARIES(OCCViewer ${COMMON_LIBS})
+INSTALL(TARGETS OCCViewer DESTINATION ${GUI_salomelib_LIBS})
+SET(COMMON_HEADERS_H
+  OCCViewer_AISSelector.h
+  OCCViewer_ViewManager.h
+  OCCViewer_ViewModel.h
+  OCCViewer_ViewPort3d.h
+  OCCViewer_ViewPort.h
+  OCCViewer_ViewSketcher.h
+  OCCViewer_ViewWindow.h
+  OCCViewer_VService.h
+  OCCViewer_CreateRestoreViewDlg.h
+  OCCViewer.h
+  OCCViewer_ClippingDlg.h      
+  OCCViewer_AxialScaleDlg.h
+  OCCViewer_SetRotationPointDlg.h
+  OCCViewer_Trihedron.h 
+  OCCViewer_FontWidget.h
+  OCCViewer_CubeAxesDlg.h
+  OCCViewer_ToolTip.h
+  OCCViewer_ViewFrame.h
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/ObjBrowser/CMakeLists.txt b/src/ObjBrowser/CMakeLists.txt
new file mode 100644 (file)
index 0000000..eb3b7d5
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+)
+
+SET(GUI_HEADERS OB_Browser.h)
+QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
+SET(ObjBrowser_SOURCES
+  OB_Browser.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/OB_msg_en.ts
+  resources/OB_msg_fr.ts
+)
+
+ADD_LIBRARY(ObjBrowser SHARED ${ObjBrowser_SOURCES} ${GUI_HEADERS})
+SET_TARGET_PROPERTIES(ObjBrowser PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(ObjBrowser qtx ${QT_MT_LIBS})
+INSTALL(TARGETS ObjBrowser DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H
+  OB.h
+  OB_Browser.h
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
diff --git a/src/OpenGLUtils/CMakeLists.txt b/src/OpenGLUtils/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..4a0c2ee
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+)
+
+SET(COMMON_FLAGS "${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${OGL_LIBS} ${SALOMELocalTrace})
+
+ADD_LIBRARY(OpenGLUtils SHARED OpenGLUtils_FrameBuffer.cxx)
+SET_TARGET_PROPERTIES(OpenGLUtils PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(OpenGLUtils ${COMMON_LIBS})
+INSTALL(TARGETS OpenGLUtils DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  OpenGLUtils.h
+  OpenGLUtils_FrameBuffer.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/Plot2d/CMakeLists.txt b/src/Plot2d/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..669455b
--- /dev/null
@@ -0,0 +1,126 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QWT_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QWT_LIBS} ${QT_MT_LIBS} ${PYTHON_LIBS} suit)
+
+SET(GUI_HEADERS   
+  Plot2d_FitDataDlg.h
+  Plot2d_SetupViewDlg.h
+  Plot2d_ViewFrame.h
+  Plot2d_ViewManager.h
+  Plot2d_ViewModel.h
+  Plot2d_ViewWindow.h
+  Plot2d_SetupCurveDlg.h
+  Plot2d_Algorithm.h
+  Plot2d_NormalizeAlgorithm.h
+  Plot2d_SetupCurveScaleDlg.h
+  Plot2d_ToolTip.h
+)
+
+SET(Plot2d_SOURCES
+  Plot2d.cxx
+  Plot2d_PlotItems.cxx
+  Plot2d_Object.cxx
+  Plot2d_Curve.cxx
+  Plot2d_Histogram.cxx
+  Plot2d_FitDataDlg.cxx
+  Plot2d_Prs.cxx
+  Plot2d_SetupViewDlg.cxx
+  Plot2d_ViewFrame.cxx
+  Plot2d_ViewManager.cxx
+  Plot2d_ViewModel.cxx
+  Plot2d_ViewWindow.cxx
+  Plot2d_Algorithm.cxx
+  Plot2d_NormalizeAlgorithm.cxx
+  Plot2d_SetupCurveDlg.cxx
+  Plot2d_SetupCurveScaleDlg.cxx
+  Plot2d_ToolTip.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/Plot2d_images.ts
+  resources/Plot2d_msg_en.ts
+  resources/Plot2d_msg_fr.ts
+)
+
+# header files 
+SET(COMMON_HEADERS_H 
+  Plot2d.h
+  Plot2d_PlotItems.h
+  Plot2d_Object.h
+  Plot2d_Curve.h
+  Plot2d_Histogram.h
+  Plot2d_FitDataDlg.h
+  Plot2d_Prs.h
+  Plot2d_SetupViewDlg.h
+  Plot2d_ViewFrame.h
+  Plot2d_ViewManager.h
+  Plot2d_ViewModel.h
+  Plot2d_ViewWindow.h
+  Plot2d_Algorithm.h
+  Plot2d_NormalizeAlgorithm.h
+  Plot2d_SetupCurveDlg.h
+  Plot2d_ToolTip.h
+  Plot2d_SetupCurveScaleDlg.h
+)
+
+IF(ENABLE_PYCONSOLE)
+  SET(COMMON_HEADERS_H
+      ${COMMON_HEADERS_H}
+      Plot2d_AnalyticalCurve.h
+      Plot2d_AnalyticalCurveDlg.h
+      Plot2d_AnalyticalParser.h
+  )
+  SET(Plot2d_SOURCES
+      ${Plot2d_SOURCES}
+      Plot2d_AnalyticalCurve.cxx
+      Plot2d_AnalyticalCurveDlg.cxx
+      Plot2d_AnalyticalParser.cxx
+  )
+  SET(GUI_HEADERS
+      ${GUI_HEADERS}
+      Plot2d_AnalyticalCurveDlg.h
+  )
+ENDIF(ENABLE_PYCONSOLE)
+
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+ADD_LIBRARY(Plot2d SHARED ${Plot2d_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(Plot2d PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(Plot2d ${COMMON_LIBS})
+INSTALL(TARGETS Plot2d DESTINATION ${GUI_salomelib_LIBS})
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/Prs/CMakeLists.txt b/src/Prs/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..cd501fb
--- /dev/null
@@ -0,0 +1,25 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+ADD_LIBRARY(SalomePrs SHARED SALOME_Prs.cxx)
+SET_TARGET_PROPERTIES(SalomePrs PROPERTIES COMPILE_FLAGS "${PLATFORM_DEFINITIONS}")
+INSTALL(TARGETS SalomePrs DESTINATION ${GUI_salomelib_LIBS})
+
+INSTALL(FILES SALOME_Prs.h DESTINATION ${GUI_salomeinclude_HEADERS})
+
diff --git a/src/PyConsole/CMakeLists.txt b/src/PyConsole/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..cb23164
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../PyInterp
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${PYTHON_LIBS} ${QT_LIBS} ${SALOMELocalTrace} qtx suit PyInterp)
+
+SET(GUI_HEADERS   
+  PyConsole_Editor.h
+  PyConsole_Console.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(PyConsole_SOURCES
+  PyConsole_Console.cxx
+  PyConsole_Editor.cxx
+  PyConsole_Interp.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/PyConsole_msg_en.ts
+  resources/PyConsole_msg_fr.ts
+)
+
+ADD_LIBRARY(PyConsole SHARED ${PyConsole_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(PyConsole PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(PyConsole ${COMMON_LIBS})
+INSTALL(TARGETS PyConsole DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  PyConsole.h
+  PyConsole_Console.h
+  PyConsole_Editor.h
+  PyConsole_Interp.h
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
diff --git a/src/PyInterp/CMakeLists.txt b/src/PyInterp/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..d53efed
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Event
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${PYTHON_LIBS} ${QT_LIBS} Event)
+
+SET(GUI_HEADERS PyInterp_Watcher.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(PyInterp_SOURCES
+  PyInterp_Interp.cxx
+  PyInterp_Dispatcher.cxx
+)
+
+ADD_LIBRARY(PyInterp SHARED ${PyInterp_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(PyInterp PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(PyInterp ${COMMON_LIBS})
+INSTALL(TARGETS PyInterp DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  PyInterp.h
+  PyInterp_Interp.h
+  PyInterp_Dispatcher.h
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/QDS/CMakeLists.txt b/src/QDS/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..599c3b3
--- /dev/null
@@ -0,0 +1,84 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../DDS
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QT_MT_LIBS} ${CAS_KERNEL} DDS qtx)
+
+SET(GUI_HEADERS   
+  QDS_CheckBox.h
+  QDS_ComboBox.h
+  QDS_Datum.h
+  QDS_LineEdit.h
+  QDS_SpinBox.h
+  QDS_SpinBoxDbl.h
+  QDS_TextEdit.h
+  QDS_RadioBox.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(QDS_SOURCES
+  QDS.cxx
+  QDS_CheckBox.cxx
+  QDS_ComboBox.cxx
+  QDS_Datum.cxx
+  QDS_LineEdit.cxx
+  QDS_SpinBox.cxx
+  QDS_SpinBoxDbl.cxx
+  QDS_TextEdit.cxx
+  QDS_Validator.cxx
+  QDS_RadioBox.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/QDS_msg_en.ts
+  resources/QDS_msg_fr.ts
+)
+
+ADD_LIBRARY(QDS SHARED ${QDS_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(QDS PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(QDS ${COMMON_LIBS})
+INSTALL(TARGETS QDS DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  QDS.h
+  QDS_CheckBox.h
+  QDS_ComboBox.h
+  QDS_Datum.h
+  QDS_LineEdit.h
+  QDS_SpinBox.h
+  QDS_SpinBoxDbl.h
+  QDS_TextEdit.h
+  QDS_Validator.h
+  QDS_RadioBox.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
diff --git a/src/Qtx/CMakeLists.txt b/src/Qtx/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..6a3cba8
--- /dev/null
@@ -0,0 +1,184 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+)
+
+SET(GUI_HEADERS   
+  QtxAction.h
+  QtxActionGroup.h
+  QtxActionMenuMgr.h
+  QtxActionMgr.h
+  QtxActionSet.h
+  QtxActionToolMgr.h
+  QtxBackgroundTool.h
+  QtxBiColorTool.h
+  QtxColorButton.h
+  QtxColorScale.h
+  QtxComboBox.h
+  QtxDialog.h
+  QtxDockAction.h
+  QtxDockWidget.h
+  QtxDoubleSpinBox.h
+  QtxFontEdit.h
+  QtxGridBox.h
+  QtxGroupBox.h
+  QtxIntSpinBox.h
+  QtxListAction.h
+  QtxTreeView.h
+  QtxLogoMgr.h
+  QtxMainWindow.h
+  QtxMenu.h
+  QtxMultiAction.h
+  QtxMRUAction.h
+  QtxPagePrefMgr.h
+  QtxPathDialog.h
+  QtxPathEdit.h
+  QtxPathListEdit.h
+  QtxPopupMgr.h
+  QtxRubberBand.h
+  QtxSearchTool.h
+  QtxShortcutEdit.h
+  QtxSplash.h
+  QtxToolBar.h
+  QtxToolTip.h
+  QtxValidator.h
+  QtxWorkspace.h
+  QtxWorkspaceAction.h
+  QtxWorkstack.h
+  QtxWorkstackAction.h
+  QtxWebBrowser.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(qtx_SOURCES
+  Qtx.cxx
+  QtxAction.cxx
+  QtxActionGroup.cxx
+  QtxActionMenuMgr.cxx
+  QtxActionMgr.cxx
+  QtxActionSet.cxx
+  QtxActionToolMgr.cxx
+  QtxBackgroundTool.cxx
+  QtxBiColorTool.cxx
+  QtxColorButton.cxx
+  QtxColorScale.cxx
+  QtxComboBox.cxx
+  QtxDialog.cxx
+  QtxDockAction.cxx
+  QtxDockWidget.cxx
+  QtxDoubleSpinBox.cxx
+  QtxEvalExpr.cxx
+  QtxFontEdit.cxx
+  QtxGridBox.cxx
+  QtxGroupBox.cxx
+  QtxIntSpinBox.cxx
+  QtxListAction.cxx
+  QtxTreeView.cxx
+  QtxLogoMgr.cxx
+  QtxMainWindow.cxx
+  QtxMenu.cxx
+  QtxMultiAction.cxx
+  QtxMRUAction.cxx
+  QtxPagePrefMgr.cxx
+  QtxPathDialog.cxx
+  QtxPathEdit.cxx
+  QtxPathListEdit.cxx
+  QtxPopupMgr.cxx
+  QtxPreferenceMgr.cxx
+  QtxResourceMgr.cxx
+  QtxRubberBand.cxx
+  QtxSearchTool.cxx
+  QtxShortcutEdit.cxx
+  QtxSplash.cxx
+  QtxToolBar.cxx
+  QtxToolTip.cxx
+  QtxTranslator.cxx
+  QtxValidator.cxx
+  QtxWorkspace.cxx
+  QtxWorkspaceAction.cxx
+  QtxWorkstack.cxx
+  QtxWorkstackAction.cxx
+  QtxWebBrowser.cxx
+)
+SET(GUITS_SOURCES
+  resources/Qtx_msg_fr.ts
+)
+
+ADD_LIBRARY(qtx SHARED ${qtx_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(qtx PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(qtx ${QT_MT_LIBS} ${OGL_LIBS})
+INSTALL(TARGETS qtx DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H
+  Qtx.h
+  QtxAction.h
+  QtxActionGroup.h
+  QtxActionMenuMgr.h
+  QtxActionMgr.h
+  QtxActionSet.h
+  QtxActionToolMgr.h
+  QtxBackgroundTool.h
+  QtxBiColorTool.h
+  QtxColorButton.h
+  QtxColorScale.h
+  QtxComboBox.h
+  QtxDialog.h
+  QtxDockAction.h
+  QtxDockWidget.h
+  QtxDoubleSpinBox.h
+  QtxEvalExpr.h
+  QtxFontEdit.h
+  QtxGridBox.h
+  QtxGroupBox.h
+  QtxIntSpinBox.h
+  QtxListAction.h
+  QtxTreeView.h
+  QtxLogoMgr.h
+  QtxMainWindow.h
+  QtxMap.h
+  QtxMenu.h
+  QtxMultiAction.h
+  QtxMRUAction.h
+  QtxPagePrefMgr.h
+  QtxPathDialog.h
+  QtxPathEdit.h
+  QtxPathListEdit.h
+  QtxPopupMgr.h
+  QtxPreferenceMgr.h
+  QtxResourceMgr.h
+  QtxRubberBand.h
+  QtxSearchTool.h
+  QtxShortcutEdit.h
+  QtxSplash.h
+  QtxToolBar.h
+  QtxToolTip.h
+  QtxTranslator.h
+  QtxValidator.h
+  QtxWorkspace.h
+  QtxWorkspaceAction.h
+  QtxWorkstack.h
+  QtxWorkstackAction.h
+  QtxWebBrowser.h
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
diff --git a/src/QxGraph/CMakeLists.txt b/src/QxGraph/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..2d3dba5
--- /dev/null
@@ -0,0 +1,80 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QT_MT_LIBS} suit)
+
+SET(GUI_HEADERS   
+  QxGraph_Canvas.h
+  QxGraph_CanvasView.h
+  QxGraph_ViewWindow.h
+  QxGraph_ViewManager.h
+  QxGraph_ViewModel.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(QxGraph_SOURCES
+  QxGraph_Prs.cxx
+  QxGraph_Canvas.cxx
+  QxGraph_CanvasView.cxx
+  QxGraph_ViewWindow.cxx
+  QxGraph_ViewManager.cxx
+  QxGraph_ViewModel.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/QxGraph_images.ts
+  resources/QxGraph_msg_en.ts
+  resources/QxGraph_msg_fr.ts
+)
+
+ADD_LIBRARY(QxGraph SHARED ${QxGraph_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(QxGraph PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(QxGraph ${COMMON_LIBS})
+INSTALL(TARGETS QxGraph DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  QxGraph_ActiveItem.h
+  QxGraph_Prs.h
+  QxGraph_Canvas.h
+  QxGraph_CanvasView.h
+  QxGraph_ViewWindow.h
+  QxGraph_ViewManager.h
+  QxGraph_ViewModel.h
+  QxGraph_Def.h
+  QxGraph.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/QxScene/CMakeLists.txt b/src/QxScene/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..28defd2
--- /dev/null
@@ -0,0 +1,71 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QT_MT_LIBS} suit)
+
+SET(GUI_HEADERS   
+  QxScene_ViewWindow.h
+  QxScene_ViewManager.h
+  QxScene_ViewModel.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(QxScene_SOURCES
+  QxScene_ViewWindow.cxx
+  QxScene_ViewManager.cxx
+  QxScene_ViewModel.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/QxSceneViewer_images.ts
+  resources/QxSceneViewer_msg_en.ts
+  resources/QxSceneViewer_msg_fr.ts
+)
+
+ADD_LIBRARY(QxScene SHARED ${QxScene_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(QxScene PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(QxScene ${COMMON_LIBS})
+INSTALL(TARGETS QxScene DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  QxScene_ViewWindow.h
+  QxScene_ViewManager.h
+  QxScene_ViewModel.h
+  QxScene_Def.h
+  QxScene.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/ResExporter/CMakeLists.txt b/src/ResExporter/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..169503b
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+
+SET(COMMON_LIBS qtx suit ${QT_LIBS})
+
+ADD_EXECUTABLE(ResourceExporter ResourceExporter.cxx)
+SET_TARGET_PROPERTIES(ResourceExporter PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(ResourceExporter SUITApp ${COMMON_LIBS})
+INSTALL(TARGETS ResourceExporter DESTINATION ${GUI_salomebin_BINS})
+
diff --git a/src/SALOME_PY/CMakeLists.txt b/src/SALOME_PY/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..60694b8
--- /dev/null
@@ -0,0 +1,58 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Event
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Session
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SVTK
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../VTKViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+)
+
+SET(COMMON_FLAGS "-DHAVE_CONFIG_H ${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${BOOST_DEFINITIONS} ${VTK_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+
+SET(COMMON_LIBS
+  ${PYTHON_LIBS}
+  ${QT_MT_LIBS}
+  ${VTK_LIBS}
+  ${OGL_LIBS}
+  LightApp
+  ${vtkCommonPythonD}
+  ${vtkGraphicsPythonD}
+  ${vtkImagingPythonD}
+  ${vtkPythonCore}
+)
+
+ADD_LIBRARY(SalomePy SHARED SalomePy.cxx)
+SET_TARGET_PROPERTIES(SalomePy PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomePy ${COMMON_LIBS})
+INSTALL(TARGETS SalomePy DESTINATION ${GUI_salomelib_LIBS})
+
diff --git a/src/SALOME_PYQT/CMakeLists.txt b/src/SALOME_PYQT/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..e9134d2
--- /dev/null
@@ -0,0 +1,25 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+ADD_SUBDIRECTORY(SALOME_PYQT_GUILight)
+ADD_SUBDIRECTORY(SalomePyQt)
+
+IF(GUI_ENABLE_CORBA)
+  ADD_SUBDIRECTORY(SALOME_PYQT_GUI)
+ENDIF(GUI_ENABLE_CORBA)
diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt b/src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..28ca986
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${SIP_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../PyInterp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../SalomeApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SALOME_PYQT_GUILight
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../Plot2d
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../OCCViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../SalomeApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../STD
+)
+
+SET(COMMON_FLAGS "-DCALL_OLD_METHODS -DHAVE_CONFIG_H ${QT_DEFINITIONS} ${PYTHON_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${VTK_DEFINITIONS} ${CORBA_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS 
+  ${PYTHON_LIBS}
+  ${PYQT_LIBS}
+  ${VTK_LIBS}
+  ${OGL_LIBS}
+  ${PLATFORM_LIBS}
+  PyInterp
+  SalomeApp
+  OCCViewer
+  Plot2d
+  SalomePyQtGUILight
+)
+
+SET(GUI_HEADERS SALOME_PYQT_Module.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+ADD_LIBRARY(SalomePyQtGUI SHARED SALOME_PYQT_Module.cxx ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SalomePyQtGUI PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomePyQtGUI ${COMMON_LIBS})
+INSTALL(TARGETS SalomePyQtGUI DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  SALOME_PYQT_GUI.h
+  SALOME_PYQT_Module.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt b/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..b8e534a
--- /dev/null
@@ -0,0 +1,101 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${SIP_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../PyInterp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../PyConsole
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../Plot2d
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../OCCViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../SUITApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../STD
+)
+
+SET(COMMON_FLAGS "-DHAVE_CONFIG_H -DCALL_OLD_METHODS ${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${VTK_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${PYTHON_LIBS} ${PYQT_LIBS} ${VTK_LIBS} ${OGL_LIBS} PyInterp LightApp) 
+
+IF(GUI_ENABLE_CORBA)
+  INCLUDE_DIRECTORIES(
+    ${CMAKE_CURRENT_SOURCE_DIR}/../../SalomeApp
+    ${OMNIORB_INCLUDE_DIRS}
+  )
+  SET(COMMON_LIBS ${COMMON_LIBS} SalomeApp ${SalomeContainer})
+ELSE(GUI_ENABLE_CORBA)
+   SET(COMMON_FLAGS "${COMMON_FLAGS} -DGUI_DISABLE_CORBA")
+ENDIF(GUI_ENABLE_CORBA)
+
+SET(GUI_HEADERS SALOME_PYQT_ModuleLight.h SALOME_PYQT_DataModelLight.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+# extra source files (generated by sip)
+SET(SIP_SRC
+  sipAPISalomePyQtGUILight.h
+  sipSalomePyQtGUILightcmodule.cc
+)
+# Sip definition file
+SET(SIP_FILES
+  SALOME_PYQT_GUILight.sip
+)
+FOREACH(input ${SIP_FILES})
+  SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+  SET(output)
+  FOREACH(out ${SIP_SRC})
+    SET(output ${output} ${CMAKE_CURRENT_BINARY_DIR}/${out})
+  ENDFOREACH(out ${SIP_SRC})
+  ADD_CUSTOM_COMMAND(
+    OUTPUT ${output}
+    COMMAND ${SIP_EXECUTABLE} ${PYQT_SIPFLAGS} ${input}
+    MAIN_DEPENDENCY ${input}
+  )
+ENDFOREACH(input ${SIP_FILES})
+
+
+SET(SalomePyQtGUI_SOURCES
+  SALOME_PYQT_ModuleLight.cxx
+  SALOME_PYQT_DataObjectLight.cxx
+  SALOME_PYQT_DataModelLight.cxx
+  SALOME_PYQT_PyInterp.cxx
+)
+ADD_LIBRARY(SalomePyQtGUILight SHARED ${SalomePyQtGUI_SOURCES} ${GUI_HEADERS_MOC} ${SIP_SRC})
+SET_TARGET_PROPERTIES(SalomePyQtGUILight PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomePyQtGUILight ${COMMON_LIBS})
+INSTALL(TARGETS SalomePyQtGUILight DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  SALOME_PYQT_GUILight.h
+  SALOME_PYQT_ModuleLight.h
+  SALOME_PYQT_DataObjectLight.h
+  SALOME_PYQT_DataModelLight.h
+  SALOME_PYQT_PyInterp.h
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt b/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..f9b7600
--- /dev/null
@@ -0,0 +1,113 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${QWT_INCLUDE_DIRS}
+  ${SIP_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_BINARY_DIR}/idl
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../Event
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../LogWindow
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../VTKViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../OCCViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../Plot2d
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SALOME_PYQT_GUILight
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../PyInterp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../ObjBrowser
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../OBJECT
+)
+# -DHAVE_CONFIG_H 
+SET(COMMON_FLAGS "${QWT_DEFINITIONS} ${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${VTK_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS 
+  ${PYTHON_LIBS}
+  ${SIP_LIBS}
+  ${PYQT_LIBS}
+  ${VTK_LIBS}
+  ${QWT_LIBS}
+  ${OGL_LIBS}
+  suit
+  CAM
+  std
+  qtx
+  Event
+  LogWindow
+  VTKViewer
+  SalomePyQtGUILight
+  OCCViewer
+  Plot2d
+) 
+
+SET(GUI_HEADERS SalomePyQt.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+# extra source files (generated by sip)
+SET(SIP_SRC
+  sipAPISalomePyQt.h
+  sipSalomePyQtSalomePyQt.cc
+  sipSalomePyQtSALOME_Selection.cc
+  sipSalomePyQtQtxAction.cc
+  sipSalomePyQtQtxActionGroup.cc
+  sipSalomePyQtQtxActionSet.cc
+  sipSalomePyQtcmodule.cc
+)
+# Sip definition file
+SET(SIP_FILES
+  SalomePyQt.sip
+)
+FOREACH(input ${SIP_FILES})
+  SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+  SET(output)
+  FOREACH(out ${SIP_SRC})
+    SET(output ${output} ${CMAKE_CURRENT_BINARY_DIR}/${out})
+  ENDFOREACH(out ${SIP_SRC})
+  ADD_CUSTOM_COMMAND(
+    OUTPUT ${output}
+    COMMAND ${SIP_EXECUTABLE} ${PYQT_SIPFLAGS} ${input}
+    MAIN_DEPENDENCY ${input}
+  )
+ENDFOREACH(input ${SIP_FILES})
+
+SET(SalomePyQt_SOURCES SalomePyQt.cxx)
+
+ADD_LIBRARY(SalomePyQt SHARED ${SalomePyQt_SOURCES} ${GUI_HEADERS_MOC} ${SIP_SRC})
+SET_TARGET_PROPERTIES(SalomePyQt PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomePyQt ${COMMON_LIBS})
+INSTALL(TARGETS SalomePyQt DESTINATION ${GUI_salomelib_LIBS})
+
+IF(NOT WINDOWS)
+  ADD_CUSTOM_COMMAND(TARGET SalomePyQt
+    POST_BUILD
+    COMMAND ln -sf libSalomePyQt.so SalomePyQt.so
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+  )
+  INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/SalomePyQt.so DESTINATION ${GUI_salomelib_LIBS})
+ENDIF(NOT WINDOWS)
diff --git a/src/SALOME_SWIG/CMakeLists.txt b/src/SALOME_SWIG/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..f0fbad1
--- /dev/null
@@ -0,0 +1,100 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+FIND_PACKAGE(SWIG REQUIRED)
+INCLUDE(${SWIG_USE_FILE})
+INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
+
+SET_SOURCE_FILES_PROPERTIES(libSALOME_Swig.i PROPERTIES CPLUSPLUS ON)
+SET_SOURCE_FILES_PROPERTIES(libSALOME_Swig.i PROPERTIES SWIG_DEFINITIONS "-shadow")
+SET_SOURCE_FILES_PROPERTIES(libSALOME_SwigPYTHON_wrap.cxx PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
+
+INCLUDE_DIRECTORIES(
+  ${PYTHON_INCLUDE_DIRS}
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${QWT_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_BINARY_DIR}/salome_adm
+  ${CMAKE_BINARY_DIR}/idl
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../ObjBrowser
+  ${CMAKE_CURRENT_SOURCE_DIR}/../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SOCC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SVTK
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Event
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OCCViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
+  ${CMAKE_CURRENT_SOURCE_DIR}/../VTKViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SPlot2d
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Plot2d
+)
+
+SET(COMMON_FLAGS "${PYTHON_DEFINITIONS} ${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${VTK_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+
+SWIG_ADD_MODULE(libSALOME_Swig python libSALOME_Swig.i SALOMEGUI_Swig.cxx)
+SWIG_LINK_LIBRARIES(libSALOME_Swig LightApp ${PYTHON_LIBS})
+SET_TARGET_PROPERTIES(_libSALOME_Swig PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+
+IF(${MACHINE} STREQUAL WINDOWS)
+  SET_TARGET_PROPERTIES(_libSALOME_Swig PROPERTIES DEBUG_OUTPUT_NAME _libSALOME_Swig_d)
+ENDIF(${MACHINE} STREQUAL WINDOWS)
+
+INSTALL(TARGETS _libSALOME_Swig DESTINATION ${GUI_salomepythondir})
+
+SET(COMMON_HEADERS
+  libSALOME_Swig.i
+  SALOMEGUI_Swig.hxx
+  SALOMEGUI_Swig.i
+)
+INSTALL(FILES ${COMMON_HEADERS} DESTINATION ${GUI_salomeinclude_HEADERS})
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libSALOME_Swig.py DESTINATION ${GUI_salomepythondir})
+
+#
+# ===============================================================
+# Files to be installed
+# ===============================================================
+#
+SET(PYTHON_FILES
+  examplevtk1.py 
+  test_table.py 
+  test_big_table.py 
+  test_many_objects.py 
+  test_remove_ref.py
+)
+SALOME_INSTALL_SCRIPTS("${PYTHON_FILES}" ${GUI_salomescript_DATA})
+SALOME_INSTALL_SCRIPTS("SALOMEGUI_shared_modules.py" ${GUI_sharedpkgpython_PYTHON})
+
+CONFIGURE_FILE(supervisionexample.py.in supervisionexample.py @ONLY)
+CONFIGURE_FILE(supervisiongeomexample.py.in supervisiongeomexample.py @ONLY)
+SET(script_DATA 
+  ${CMAKE_CURRENT_BINARY_DIR}/libSALOME_Swig.py 
+  ${CMAKE_CURRENT_BINARY_DIR}/supervisionexample.py 
+  ${CMAKE_CURRENT_BINARY_DIR}/supervisiongeomexample.py
+)
+INSTALL(FILES ${script_DATA} DESTINATION ${GUI_salomescript_DATA}
+  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
diff --git a/src/SOCC/CMakeLists.txt b/src/SOCC/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..d7c6c1d
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OCCViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QT_LIBS} qtx suit SalomeObject SalomePrs OCCViewer)
+
+SET(GUI_HEADERS   
+  SOCC_ViewModel.h
+  SOCC_ViewWindow.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(SOCC_SOURCES
+  SOCC_ViewModel.cxx
+  SOCC_Prs.cxx
+  SOCC_ViewWindow.cxx
+)
+
+ADD_LIBRARY(SOCC SHARED ${SOCC_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SOCC PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SOCC ${COMMON_LIBS})
+INSTALL(TARGETS SOCC DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  SOCC.h
+  SOCC_ViewModel.h
+  SOCC_Prs.h
+  SOCC_ViewWindow.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/SPlot2d/CMakeLists.txt b/src/SPlot2d/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..3c7cc70
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${QWT_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Plot2d
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${QWT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS suit Plot2d SalomePrs SalomeObject)
+
+SET(GUI_HEADERS   
+  SPlot2d_ViewModel.h
+  SPlot2d_ViewWindow.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(SPlot2d_SOURCES
+  SPlot2d_Curve.cxx
+  SPlot2d_Histogram.cxx
+  SPlot2d_Prs.cxx
+  SPlot2d_ViewModel.cxx
+  SPlot2d_ViewWindow.cxx
+)
+
+ADD_LIBRARY(SPlot2d SHARED ${SPlot2d_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SPlot2d PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SPlot2d ${COMMON_LIBS})
+INSTALL(TARGETS SPlot2d DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  SPlot2d.h
+  SPlot2d_Curve.h
+  SPlot2d_Histogram.h
+  SPlot2d_Prs.h
+  SPlot2d_ViewModel.h
+  SPlot2d_ViewWindow.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/STD/CMakeLists.txt b/src/STD/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..f2b4ff4
--- /dev/null
@@ -0,0 +1,71 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QT_MT_LIBS} suit qtx)
+
+SET(GUI_HEADERS   
+  STD_Application.h
+  STD_MDIDesktop.h
+  STD_SDIDesktop.h
+  STD_TabDesktop.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(std_SOURCES
+  STD_Application.cxx
+  STD_MDIDesktop.cxx
+  STD_SDIDesktop.cxx
+  STD_TabDesktop.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/STD_images.ts
+  resources/STD_msg_en.ts
+  resources/STD_msg_fr.ts
+)
+
+ADD_LIBRARY(std SHARED ${std_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(std PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(std ${COMMON_LIBS})
+INSTALL(TARGETS std DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  STD.h
+  STD_Application.h
+  STD_MDIDesktop.h
+  STD_SDIDesktop.h
+  STD_TabDesktop.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+SET(GUIPNG_DATA ${GUIPNG_DATA} ${CMAKE_CURRENT_SOURCE_DIR}/resources/std.ini)
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/SUIT/CMakeLists.txt b/src/SUIT/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fcd2d6c
--- /dev/null
@@ -0,0 +1,114 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../ObjBrowser
+)
+
+SET(COMMON_LIBS
+  qtx
+  ObjBrowser
+  ${QT_LIBS}
+  ${PLATFORM_LIBS}
+)
+SET(COMMON_FLAGS "${PLATFORM_DEFINITIONS}")
+IF(ENABLE_TESTRECORDER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
+  SET(COMMON_LIBS ${COMMON_LIBS} ${TESTRECORDER_LIBS})
+ENDIF(ENABLE_TESTRECORDER)
+
+SET(GUI_HEADERS 
+  SUIT_Accel.h  
+  SUIT_ActionOperation.h 
+  SUIT_Application.h 
+  SUIT_DataBrowser.h 
+  SUIT_DataObject.h 
+  SUIT_Desktop.h 
+  SUIT_LicenseDlg.h
+  SUIT_FileDlg.h 
+  SUIT_Operation.h 
+  SUIT_PopupClient.h 
+  SUIT_PreferenceMgr.h 
+  SUIT_SelectionMgr.h 
+  SUIT_Selector.h 
+  SUIT_Session.h 
+  SUIT_Study.h
+  SUIT_TreeModel.h 
+  SUIT_ViewManager.h 
+  SUIT_ViewModel.h 
+  SUIT_ViewWindow.h 
+  SUIT_ShortcutMgr.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(suit_SOURCES
+  SUIT_Accel.cxx
+  SUIT_ActionOperation.cxx
+  SUIT_Application.cxx
+  SUIT_DataBrowser.cxx
+  SUIT_DataObject.cxx
+  SUIT_DataObjectIterator.cxx
+  SUIT_DataObjectKey.cxx
+  SUIT_DataOwner.cxx
+  SUIT_Desktop.cxx
+  SUIT_ExceptionHandler.cxx
+  SUIT_FileDlg.cxx
+  SUIT_LicenseDlg.cxx
+  SUIT_FileValidator.cxx
+  SUIT_MessageBox.cxx
+  SUIT_Operation.cxx
+  SUIT_OverrideCursor.cxx
+  SUIT_PopupClient.cxx
+  SUIT_PreferenceMgr.cxx
+  SUIT_ResourceMgr.cxx
+  SUIT_SelectionFilter.cxx
+  SUIT_SelectionMgr.cxx
+  SUIT_Selector.cxx
+  SUIT_Session.cxx
+  SUIT_Study.cxx
+  SUIT_Tools.cxx
+  SUIT_TreeModel.cxx
+  SUIT_ViewManager.cxx
+  SUIT_ViewModel.cxx
+  SUIT_ViewWindow.cxx
+  SUIT_ShortcutMgr.cxx
+)
+SET(GUITS_SOURCES
+  resources/SUIT_msg_en.ts
+  resources/SUIT_msg_fr.ts
+  resources/SUIT_images.ts
+)
+
+ADD_LIBRARY(suit SHARED ${suit_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(suit PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(suit ${COMMON_LIBS})
+INSTALL(TARGETS suit DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
+
diff --git a/src/SUITApp/CMakeLists.txt b/src/SUITApp/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..8bdd3a2
--- /dev/null
@@ -0,0 +1,95 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Style
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+
+SET(COMMON_LIBS
+  qtx 
+  suit 
+  SalomeStyle
+  ${QT_MT_LIBS}
+)
+
+SET(GUI_HEADERS SUITApp_Application.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(SUITApp_SOURCES
+  SUITApp.cxx
+  SUITApp_Application.cxx
+)
+SET(COMMON_HEADERS_HXX)
+IF(ENABLE_PYCONSOLE)
+  SET(COMMON_HEADERS_HXX
+    ${COMMON_HEADERS_HXX}
+    SUITApp_init_python.hxx
+  )
+  SET(SUITApp_SOURCES
+    ${SUITApp_SOURCES}
+    SUITApp_init_python.cxx
+  )
+  SET(COMMON_LIBS
+    ${COMMON_LIBS}
+    ${PYTHON_LIBS}
+   )
+ENDIF(ENABLE_PYCONSOLE)
+
+IF(ENABLE_TESTRECORDER)
+  SET(COMMON_FLAGS
+    ${COMMON_FLAGS}
+    -DENABLE_TESTRECORDER
+    ${TESTRECORDER_DEFINITIONS}
+  )
+    SET(COMMON_LIBS
+    ${COMMON_LIBS}
+    ${TESTRECORDER_LIBS}
+  )
+ENDIF(ENABLE_TESTRECORDER)
+
+SET(GUITS_SOURCES
+  resources/SUITApp_msg_en.ts
+  resources/SUITApp_msg_fr.ts
+)
+
+ADD_LIBRARY(SUITApp SHARED ${SUITApp_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SUITApp PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SUITApp ${COMMON_LIBS})
+INSTALL(TARGETS SUITApp DESTINATION ${GUI_salomelib_LIBS})
+
+ADD_EXECUTABLE(TestSUITApp SUITApp.cxx)
+SET_TARGET_PROPERTIES(TestSUITApp PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}" OUTPUT_NAME "SUITApp")
+TARGET_LINK_LIBRARIES(TestSUITApp SUITApp ${COMMON_LIBS})
+INSTALL(TARGETS TestSUITApp DESTINATION ${GUI_salomebin_BINS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+SET(COMMON_HEADERS ${COMMON_HEADERS_H} ${COMMON_HEADERS_HXX})
+INSTALL(FILES ${COMMON_HEADERS} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
diff --git a/src/SUPERVGraph/CMakeLists.txt b/src/SUPERVGraph/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..2fc8b3f
--- /dev/null
@@ -0,0 +1,71 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+)
+
+SET(SUPERVGraph_SOURCES
+  SUPERVGraph.cxx
+  SUPERVGraph_ViewFrame.cxx
+  SUPERVGraph_ViewManager.cxx
+  SUPERVGraph_ViewModel.cxx
+)
+
+SET(GUI_HEADERS
+  SUPERVGraph.h
+  SUPERVGraph_ViewFrame.h
+  SUPERVGraph_ViewManager.h
+  SUPERVGraph_ViewModel.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(dist_salomeres_DATA
+  resources/superv_view_pan.png
+  resources/superv_view_reset.png
+)
+
+SET(GUITS_SOURCES
+  resources/SUPERVGraph_images.ts
+  resources/SUPERVGraph_msg_en.ts
+  resources/SUPERVGraph_msg_fr.ts
+)
+
+ADD_LIBRARY(SUPERVGraph SHARED ${SUPERVGraph_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SUPERVGraph PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${PYTHON_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(SUPERVGraph ${QT_MT_LIBS} suit SalomeObject)
+INSTALL(TARGETS SUPERVGraph DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
+
+
diff --git a/src/SVTK/CMakeLists.txt b/src/SVTK/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..de49ce5
--- /dev/null
@@ -0,0 +1,154 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../ViewerTools
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
+  ${CMAKE_CURRENT_SOURCE_DIR}/../VTKViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OpenGLUtils
+)
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${VTK_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS
+  qtx
+  suit
+  ViewerTools
+  SalomeObject
+  SalomePrs
+  VTKViewer
+  OpenGLUtils
+  ${SALOMELocalTrace}
+  ${OpUtil}
+  ${VTK_LIBS}
+  ${OGL_LIBS}
+  ${QT_MT_LIBS}
+  ${CAS_KERNEL}
+  ${CAS_VIEWER}
+)
+
+SET(GUI_HEADERS SVTK_GenericRenderWindowInteractor.h SVTK_RenderWindowInteractor.h SVTK_NonIsometricDlg.h 
+  SVTK_UpdateRateDlg.h SVTK_CubeAxesDlg.h SVTK_FontWidget.h SVTK_ViewModelBase.h SVTK_ViewManager.h 
+  SVTK_ViewWindow.h SVTK_ViewModel.h SVTK_View.h SVTK_SetRotationPointDlg.h SVTK_ViewParameterDlg.h
+  SVTK_ComboAction.h SVTK_RecorderDlg.h)
+QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
+
+SET(SVTK_SOURCES
+  SVTK_Prs.cxx
+  SVTK_Actor.cxx
+  SALOME_Actor.cxx
+  SVTK_RectPicker.cxx
+  SVTK_DeviceActor.cxx
+  SVTK_CubeAxesActor2D.cxx
+  SVTK_NonIsometricDlg.cxx
+  SVTK_UpdateRateDlg.cxx
+  SVTK_CubeAxesDlg.cxx
+  SVTK_FontWidget.cxx
+  SVTK_Trihedron.cxx
+  SVTK_View.cxx
+  SVTK_ViewManager.cxx
+  SVTK_ViewModel.cxx
+  SVTK_Renderer.cxx
+  SVTK_ViewWindow.cxx
+  SVTK_InteractorStyle.cxx
+  SVTK_KeyFreeInteractorStyle.cxx
+  SVTK_RenderWindowInteractor.cxx
+  SVTK_GenericRenderWindowInteractor.cxx
+  SVTK_SpaceMouse.cxx
+  SVTK_Selector.cxx
+  SVTK_SetRotationPointDlg.cxx
+  SVTK_ViewParameterDlg.cxx
+  SVTK_ComboAction.cxx
+  SVTK_Recorder.cxx
+  SVTK_RecorderDlg.cxx
+  SVTK_ImageWriter.cxx
+  SVTK_ImageWriterMgr.cxx
+  SVTK_Utils.cxx
+  vtkPVAxesActor.h
+  vtkPVAxesActor.cxx
+  vtkPVAxesWidget.h
+  vtkPVAxesWidget.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/SVTK_msg_en.ts
+  resources/SVTK_msg_fr.ts
+  resources/SVTK_images.ts
+)
+
+ADD_LIBRARY(SVTK SHARED ${SVTK_SOURCES} ${GUI_HEADERS})
+SET_TARGET_PROPERTIES(SVTK PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SVTK ${COMMON_LIBS})
+INSTALL(TARGETS SVTK DESTINATION ${GUI_salomelib_LIBS})
+
+#ADD_EXECUTABLE(TestSVTK SVTK.cxx)
+#SET_TARGET_PROPERTIES(TestSVTK PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}" OUTPUT_NAME "SVTK")
+#TARGET_LINK_LIBRARIES(TestSVTK SVTK ${COMMON_LIBS})
+#INSTALL(TARGETS TestSVTK DESTINATION ${GUI_salomebin_BINS})
+
+SET(COMMON_HEADERS_H 
+  SVTK.h
+  SVTK_Prs.h
+  SVTK_Actor.h
+  SALOME_Actor.h
+  SVTK_RectPicker.h
+  SVTK_DeviceActor.h
+  SVTK_FontWidget.h
+  SVTK_CubeAxesActor2D.h
+  SVTK_Functor.h
+  SVTK_View.h
+  SVTK_ViewManager.h
+  SVTK_ViewModel.h
+  SVTK_ViewWindow.h
+  SVTK_Renderer.h
+  SVTK_InteractorStyle.h
+  SVTK_KeyFreeInteractorStyle.h
+  SVTK_RenderWindowInteractor.h
+  SVTK_GenericRenderWindowInteractor.h
+  SVTK_Selector.h
+  SVTK_Selection.h
+  SVTK_SelectionEvent.h
+  SVTK_SpaceMouse.h
+  SVTK_Event.h
+  SVTK_ViewModelBase.h
+  SVTK_SetRotationPointDlg.h
+  SVTK_ViewParameterDlg.h
+  SVTK_ComboAction.h
+  SVTK_Recorder.h
+  SVTK_RecorderDlg.h
+  SVTK_ImageWriter.h
+  SVTK_ImageWriterMgr.h
+  SVTK_Utils.h
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
+
diff --git a/src/SalomeApp/CMakeLists.txt b/src/SalomeApp/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..5418df2
--- /dev/null
@@ -0,0 +1,174 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+ADD_SUBDIRECTORY(pluginsdemo)
+
+IF(CPPUNIT_IS_OK)
+  IF(GUI_ENABLE_CORBA)
+    ADD_SUBDIRECTORY(Test)
+  ENDIF(GUI_ENABLE_CORBA)
+ENDIF(CPPUNIT_IS_OK)
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${QWT_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIRS}
+  ${LIBXML_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SVTK
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../VTKViewer
+  ${CMAKE_CURRENT_SOURCE_DIR}/../ObjBrowser
+  ${CMAKE_CURRENT_SOURCE_DIR}/../PyConsole
+  ${CMAKE_CURRENT_SOURCE_DIR}/../TOOLSGUI
+  ${CMAKE_CURRENT_SOURCE_DIR}/../PyInterp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Session
+  ${CMAKE_BINARY_DIR}/idl
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Event
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CASCatch
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${LIBXML_DEFINITIONS} ${CORBA_DEFINITIONS} ${VTK_DEFINITIONS} ${QWT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PYTHON_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS 
+  ${PYTHON_LIBS}
+  ${QT_MT_LIBS}
+  ${OpUtil}
+  ${SALOMELocalTrace}
+  ${SalomeDSClient}
+  suit
+  std
+  CAM
+  ObjBrowser
+  SalomePrs
+  SPlot2d
+  GLViewer
+  OCCViewer
+  VTKViewer
+  SalomeObject
+  SVTK
+  SOCC
+  PyInterp
+  PyConsole
+  LogWindow
+  LightApp
+  ToolsGUI
+  SalomeSession
+  Event
+  CASCatch
+  SalomePrs
+  ${CAS_KERNEL}
+)
+
+SET(GUI_HEADERS   
+  SalomeApp_Application.h
+  SalomeApp_DataModel.h
+  SalomeApp_Module.h
+  SalomeApp_LoadStudiesDlg.h
+  SalomeApp_Study.h
+  SalomeApp_StudyPropertiesDlg.h
+  SalomeApp_ListView.h
+  SalomeApp_CheckFileDlg.h
+  SalomeApp_ExitDlg.h
+  SalomeApp_NoteBookDlg.h
+  SalomeApp_DoubleSpinBox.h
+  SalomeApp_IntSpinBox.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(SalomeApp_SOURCES
+  SalomeApp_Module.cxx
+  SalomeApp_Application.cxx
+  SalomeApp_DataModel.cxx
+  SalomeApp_DataObject.cxx
+  SalomeApp_LoadStudiesDlg.cxx
+  SalomeApp_Study.cxx
+  SalomeApp_ExceptionHandler.cxx
+  SalomeApp_PyInterp.cxx
+  SalomeApp_Tools.cxx
+  SalomeApp_ImportOperation.cxx
+  SalomeApp_Filter.cxx
+  SalomeApp_TypeFilter.cxx
+  SalomeApp_StudyPropertiesDlg.cxx
+  SalomeApp_ListView.cxx
+  SalomeApp_CheckFileDlg.cxx
+  SalomeApp_VisualState.cxx
+  SalomeApp_ExitDlg.cxx
+  SalomeApp_NoteBookDlg.cxx
+  SalomeApp_DoubleSpinBox.cxx
+  SalomeApp_IntSpinBox.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/SalomeApp_images.ts
+  resources/SalomeApp_msg_en.ts
+  resources/SalomeApp_msg_fr.ts
+)
+
+ADD_LIBRARY(SalomeApp SHARED ${SalomeApp_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SalomeApp PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomeApp ${COMMON_LIBS})
+INSTALL(TARGETS SalomeApp DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  SalomeApp.h
+  SalomeApp_Application.h
+  SalomeApp_DataModel.h
+  SalomeApp_DataObject.h
+  SalomeApp_LoadStudiesDlg.h
+  SalomeApp_Module.h
+  SalomeApp_Study.h
+  SalomeApp_ExceptionHandler.h
+  SalomeApp_PyInterp.h
+  SalomeApp_Tools.h
+  SalomeApp_ImportOperation.h
+  SalomeApp_Filter.h
+  SalomeApp_TypeFilter.h
+  SalomeApp_StudyPropertiesDlg.h
+  SalomeApp_CheckFileDlg.h
+  SalomeApp_VisualState.h
+  SalomeApp_ExitDlg.h
+  SalomeApp_NoteBookDlg.h
+  SalomeApp_DoubleSpinBox.h
+  SalomeApp_IntSpinBox.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+SET(INST_DATA ${GUIPNG_DATA} resources/SalomeApp.ini resources/SalomeApp.xml)
+INSTALL(FILES ${INST_DATA} DESTINATION ${GUI_salomeres_DATA})
+
+# python modules
+SALOME_INSTALL_SCRIPTS("salome_pluginsmanager.py" ${GUI_salomepythondir})
+SALOME_INSTALL_SCRIPTS("addvars2notebook.py" ${GUI_salomescript_PYTHON})
diff --git a/src/SalomeApp/Test/CMakeLists.txt b/src/SalomeApp/Test/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..4936c7c
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${CPPUNIT_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+)
+
+SET(COMMON_LIBS ${CPPUNIT_LIBS})
+SET(COMMON_FLAGS "${CPPUNIT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+
+ADD_LIBRARY(SalomeAppTest SHARED SalomeAppTest.cxx)
+SET_TARGET_PROPERTIES(SalomeAppTest PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomeAppTest ${COMMON_LIBS})
+INSTALL(TARGETS SalomeAppTest DESTINATION ${GUI_salomelib_LIBS}) 
+
+ADD_EXECUTABLE(TestSalomeApp TestSalomeApp.cxx)
+SET_TARGET_PROPERTIES(TestSalomeApp PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(TestSalomeApp SalomeAppTest ${COMMON_LIBS})
+INSTALL(TARGETS TestSalomeApp DESTINATION ${GUI_salomebin_BINS})
+
+INSTALL(FILES SalomeAppTest.hxx DESTINATION ${GUI_salomeinclude_HEADERS})
+SALOME_INSTALL_SCRIPTS("TestSalomeApp.py" ${GUI_salomescript_PYTHON})
index 95377484757fa2545826d340301d7f4f5db7025b..f3c9b16e6a60bce91eda3e98c43780099634936a 100644 (file)
 
 #include <cppunit/extensions/HelperMacros.h>
 
-class SalomeAppTest : public CppUnit::TestFixture
+#ifdef WIN32
+# if defined SALOMEAPPTEST_EXPORTS || defined SalomeAppTest_EXPORTS
+#  define SALOMEAPPTEST_EXPORT __declspec( dllexport )
+# else
+#  define SALOMEAPPTEST_EXPORT __declspec( dllimport )
+# endif
+#else
+# define SALOMEAPPTEST_EXPORT
+#endif
+
+class SALOMEAPPTEST_EXPORT SalomeAppTest : public CppUnit::TestFixture
 {
   CPPUNIT_TEST_SUITE( SalomeAppTest );
   CPPUNIT_TEST( testSalomeApp );
diff --git a/src/SalomeApp/pluginsdemo/CMakeLists.txt b/src/SalomeApp/pluginsdemo/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..aac1491
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+#
+# Note that the plugins files should be installed in the directory
+# <salomepluginsdir> (ROOT_DIR/share/salome/plugins) or one of this
+# sub-directories (the search of plugins by the plugin manager is
+# recurcive from this folder, in each SALOME module, i.e. each
+# variable *_ROOT_DIR).  
+#
+
+INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
+
+SET(plugins_PYTHON
+  salome_plugins.py
+  smesh_plugins.py
+  trihedron.py
+  tubedialog_ui.py
+  tubedialog.py
+  tubebuilder.py
+  xalome.py
+  minmax_dialog.py
+  minmax_plugin.py
+)
+
+SALOME_INSTALL_SCRIPTS("${plugins_PYTHON}" ${GUI_salomepluginsdir}/demo DEF_PERMS)
diff --git a/src/Session/CMakeLists.txt b/src/Session/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..2968dfe
--- /dev/null
@@ -0,0 +1,111 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${LIBXML_INCLUDE_DIRS}
+  ${PYTHON_INCLUDE_DIRS}
+  ${HDF5_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${CAS_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_BINARY_DIR}/idl
+  ${CMAKE_BINARY_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Event
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Style
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CASCatch
+)
+
+SET(COMMON_LIBS 
+  ${SalomeNS}
+  ${SalomeLifeCycleCORBA}
+  ${OpUtil}
+  ${SALOMELocalTrace}
+  ${SalomeCatalog}
+  ${SalomeDSClient}
+  ${CAS_KERNEL}
+  ${with_loggerTraceCollector}
+  ${SalomeIDLKernel}
+  ${SalomeContainer}
+  ${TOOLSDS}
+  ${SalomeLauncher}
+  ${Registry}
+  ${SALOMEBasics}
+  suit
+  Event
+  SalomeIDLGUI
+  SalomeStyle
+  ${QT_LIBS}
+)
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${LIBXML_DEFINITIONS} ${PYTHON_DEFINITIONS} ${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS} ${CAS_DEFINITIONS} ${CORBA_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+
+IF(ENABLE_TESTRECORDER)
+  SET(COMMON_FLAGS "${COMMON_FLAGS} -DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
+  SET(COMMON_LIBS ${COMMON_LIBS} ${TESTRECORDER_LIBS})
+ENDIF(ENABLE_TESTRECORDER)
+
+SET(SalomeSession_SOURCES
+  Session_Session_i.cxx
+  Session_ServerThread.cxx
+  Session_ServerLauncher.cxx
+  Session_ServerCheck.cxx
+  SalomeApp_Engine_i.cxx
+)
+ADD_LIBRARY(SalomeSession SHARED ${SalomeSession_SOURCES})
+SET_TARGET_PROPERTIES(SalomeSession PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomeSession ${COMMON_LIBS})
+INSTALL(TARGETS SalomeSession DESTINATION ${GUI_salomelib_LIBS}) 
+
+SET(SALOME_Session_Server_LIBS
+  ${COMMON_LIBS}
+  ${SalomeContainer}
+  ${SalomeResourcesManager}
+  ${TOOLSDS}
+  ${SalomeHDFPersist}
+  ${SalomeDSImpl}
+  ${SalomeGenericObj}
+  ${Registry}
+  ${SalomeNotification}
+  ${SALOMEBasics}
+  ${SalomeLauncher}
+  qtx
+  SalomeIDLGUI
+  SalomeSession
+  ${HDF5_LIBS}
+  ${PYTHON_LIBS}
+  ${OMNIORB_LIBS}
+)
+ADD_EXECUTABLE(SALOME_Session_Server SALOME_Session_Server.cxx)
+SET_TARGET_PROPERTIES(SALOME_Session_Server PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SALOME_Session_Server ${SALOME_Session_Server_LIBS})
+INSTALL(TARGETS SALOME_Session_Server DESTINATION ${GUI_salomebin_BINS})
+
+SET(COMMON_HEADERS_H
+  Session_Session_i.hxx
+  SALOME_Session.hxx
+  Session_ServerLauncher.hxx
+  Session_ServerThread.hxx
+  Session_ServerCheck.hxx
+  SalomeApp_Engine_i.hxx
+)
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/Style/CMakeLists.txt b/src/Style/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..3ca6178
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+)
+
+SET(COMMON_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QT_MT_LIBS} qtx)
+
+SET(GUI_HEADERS   
+  Style_PrefDlg.h
+  Style_Salome.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(RCCS Style.qrc)
+QT4_ADD_RESOURCES(RCC_SRCS ${RCCS})
+
+SET(SalomeStyle_SOURCES
+  Style.h
+  Style_Model.h
+  Style_PrefDlg.h
+  Style_Salome.h
+  Style_Tools.h
+  Style_ResourceMgr.h
+  Style_Model.cxx
+  Style_PrefDlg.cxx
+  Style_ResourceMgr.cxx
+  Style_Salome.cxx
+  Style_Tools.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/Style_msg_fr.ts
+)
+
+ADD_LIBRARY(SalomeStyle SHARED ${SalomeStyle_SOURCES} ${GUI_HEADERS_MOC} ${RCC_SRCS})
+SET_TARGET_PROPERTIES(SalomeStyle PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomeStyle ${COMMON_LIBS})
+INSTALL(TARGETS SalomeStyle DESTINATION ${GUI_salomelib_LIBS})
+
+SET(COMMON_HEADERS_H 
+  Style.h
+  Style_PrefDlg.h
+  Style_Salome.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+INSTALL(FILES resources/SalomeStyle.xml DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/TOOLSGUI/CMakeLists.txt b/src/TOOLSGUI/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..ad53d1d
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_BINARY_DIR}/idl
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT)
+
+SET(COMMON_LIBS
+  ${QT_MT_LIBS}
+  suit
+  ${CAS_KERNEL}
+  ${SalomeIDLKernel}
+  ${SALOMELocalTrace}
+  ${SalomeNS}
+  ${OpUtil}
+  SalomeIDLGUI
+)
+
+SET(GUI_HEADERS ToolsGUI_CatalogGeneratorDlg.h ToolsGUI_RegWidget.h)
+QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
+SET(ToolsGUI_SOURCES
+  ToolsGUI_CatalogGeneratorDlg.cxx
+  ToolsGUI_RegWidget.cxx
+  ToolsGUI.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/ToolsGUI_msg_en.ts
+  resources/ToolsGUI_msg_fr.ts
+)
+
+ADD_LIBRARY(ToolsGUI SHARED ${ToolsGUI_SOURCES} ${GUI_HEADERS})
+SET_TARGET_PROPERTIES(ToolsGUI PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(ToolsGUI ${COMMON_LIBS})
+INSTALL(TARGETS ToolsGUI DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
diff --git a/src/TreeData/CMakeLists.txt b/src/TreeData/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..d41e625
--- /dev/null
@@ -0,0 +1,77 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+ADD_SUBDIRECTORY(Test)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIRS}
+  ${BOOST_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SalomeApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../LightApp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../CAM
+  ${CMAKE_CURRENT_SOURCE_DIR}/../STD
+  ${CMAKE_CURRENT_SOURCE_DIR}/../ObjBrowser
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../GuiHelpers
+)
+
+SET(COMMON_FLAGS "${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+
+SET(COMMON_LIBS
+  ${CORBA_LIBS}
+  ${QT_LIBS}
+  ${KERNEL_LDFLAGS}
+  ${SalomeLifeCycleCORBA}
+  ${SalomeKernelHelpers}
+  SalomeApp
+  LightApp
+  suit
+  qtx
+  CAM
+  std
+  ObjBrowser
+)
+
+SET(GUI_HEADERS TreeModel.hxx TreeView.hxx TreeObserver.hxx)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+SET(SalomeTreeData_SOURCES
+  DockWidgets.cxx
+  TreeModel.cxx
+  TreeItem.cxx
+  TreeView.cxx
+  TreeObserver.cxx
+  DataModel.cxx
+  DataObject.cxx
+  DataProcessor.cxx
+  TreeGuiManager.cxx
+)
+
+ADD_LIBRARY(SalomeTreeData SHARED ${SalomeTreeData_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(SalomeTreeData PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(SalomeTreeData ${COMMON_LIBS})
+INSTALL(TARGETS SalomeTreeData DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
+INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${GUI_salomeinclude_HEADERS})
diff --git a/src/TreeData/Test/CMakeLists.txt b/src/TreeData/Test/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..560aa8e
--- /dev/null
@@ -0,0 +1,67 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${OMNIORB_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_BINARY_DIR}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_SOURCE_DIR}/src/GuiHelpers
+  ${CMAKE_SOURCE_DIR}/src/TreeData
+)
+
+SET(COMMON_LIBS
+  ${CORBA_LIBS}
+  ${QT_LIBS}
+  SalomeTreeData
+  SalomeGuiHelpers
+  ${SalomeLifeCycleCORBA}
+  ${SalomeKernelHelpers}
+)
+
+SET(GUI_HEADERS mainwindow.hxx)
+QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
+SET(GUI_FORMS mainwindow.ui)
+QT4_WRAP_UI(GUI_FORMS_HEADERS ${GUI_FORMS})
+
+SET(TreeData_guitester_SOURCES
+  testhelper.hxx
+  testhelper.cxx
+  guitester.cxx
+  mainwindow.hxx
+  mainwindow.cxx
+  MyDataModel.hxx
+  MyDataModel.cxx
+)
+
+ADD_EXECUTABLE(TreeData_guitester ${TreeData_guitester_SOURCES} ${GUI_HEADERS} ${GUI_FORMS_HEADERS})
+SET_TARGET_PROPERTIES(TreeData_guitester PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(TreeData_guitester ${COMMON_LIBS})
+
+SET(TreeData_tester_SOURCES
+  tester.cxx
+  MyDataModel.cxx
+)
+
+ADD_EXECUTABLE(TreeData_tester ${TreeData_tester_SOURCES})
+SET_TARGET_PROPERTIES(TreeData_tester PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(TreeData_tester ${COMMON_LIBS})
+
+INSTALL(TARGETS TreeData_guitester TreeData_tester DESTINATION ${GUI_salomebin_BINS})
index d28285b3ba8c594a949f51205d8aff97d2432ed0..df85cb24cbc8672eea2900d22395ed8f9dec5633 100755 (executable)
@@ -1,15 +1,15 @@
-Tuyauterie;RF1;T1\r
-Tuyauterie;RF1;T2\r
-Tuyauterie;RF1;T3\r
-Tuyauterie;RF2;T1\r
-Tuyauterie;RF3;T1\r
-Tuyauterie;RF3;T2\r
-Composansts;RF1;T1\r
-Composansts;RF1;T2\r
-Composansts;RF3;T2\r
-Genie Civil;RF1;T1\r
-Genie Civil;RF1;T2\r
-Genie Civil;RF1;T3\r
-Genie Civil;RF2;T1\r
-Genie Civil;RF3;T1\r
-Genie Civil;RF3;T2\r
+Tuyauterie;RF1;T1
+Tuyauterie;RF1;T2
+Tuyauterie;RF1;T3
+Tuyauterie;RF2;T1
+Tuyauterie;RF3;T1
+Tuyauterie;RF3;T2
+Composansts;RF1;T1
+Composansts;RF1;T2
+Composansts;RF3;T2
+Genie Civil;RF1;T1
+Genie Civil;RF1;T2
+Genie Civil;RF1;T3
+Genie Civil;RF2;T1
+Genie Civil;RF3;T1
+Genie Civil;RF3;T2
diff --git a/src/VTKViewer/CMakeLists.txt b/src/VTKViewer/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..7d0442f
--- /dev/null
@@ -0,0 +1,135 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${CAS_INCLUDE_DIRS}
+  ${QT_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
+  ${KERNEL_ROOT_DIR}/include/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+  ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+)
+
+SET(COMMON_FLAGS "${VTK_DEFINITIONS} ${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+SET(COMMON_LIBS ${QT_MT_LIBS} ${OGL_LIBS} ${VTK_LIBS} ${CAS_KERNEL} qtx suit ${SALOMELocalTrace})
+
+SET(GUI_HEADERS   
+  VTKViewer_RenderWindow.h
+  VTKViewer_RenderWindowInteractor.h
+  VTKViewer_ViewManager.h
+  VTKViewer_ViewModel.h
+  VTKViewer_ViewWindow.h
+  VTKViewer_MarkerWidget.h
+  VTKViewer_MarkerDlg.h
+)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+
+SET(RCCS VTKViewer.qrc)
+QT4_ADD_RESOURCES(RCC_SRCS ${RCCS})
+
+SET(VTKViewer_SOURCES
+  VTKViewer_CellLocationsArray.cxx
+  VTKViewer_Actor.cxx
+  VTKViewer_FramedTextActor.cxx
+  VTKViewer_ExtractUnstructuredGrid.cxx
+  VTKViewer_Filter.cxx
+  VTKViewer_GeometryFilter.cxx
+  VTKViewer_AppendFilter.cxx
+  VTKViewer_Algorithm.cxx
+  VTKViewer_InteractorStyle.cxx
+  VTKViewer_RenderWindow.cxx
+  VTKViewer_RenderWindowInteractor.cxx
+  VTKViewer_ShrinkFilter.cxx
+  VTKViewer_Transform.cxx
+  VTKViewer_TransformFilter.cxx
+  VTKViewer_Trihedron.cxx
+  VTKViewer_Utilities.cxx
+  VTKViewer_ViewManager.cxx
+  VTKViewer_ViewModel.cxx
+  VTKViewer_ConvexTool.cxx
+  VTKViewer_ViewWindow.cxx
+  VTKViewer_ArcBuilder.cxx
+  VTKViewer_MarkerUtils.cxx
+  VTKViewer_MarkerWidget.cxx
+  VTKViewer_MarkerDlg.cxx
+  VTKViewer_PolyDataMapper.cxx
+  VTKViewer_DataSetMapper.cxx
+  VTKViewer_Texture.cxx
+  VTKViewer_OpenGLRenderer.cxx
+  VTKViewer_CellCenters.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/VTKViewer_images.ts
+  resources/VTKViewer_msg_en.ts
+  resources/VTKViewer_msg_fr.ts
+)
+
+ADD_LIBRARY(VTKViewer SHARED ${VTKViewer_SOURCES} ${GUI_HEADERS_MOC} ${RCC_SRCS})
+SET_TARGET_PROPERTIES(VTKViewer PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(VTKViewer ${COMMON_LIBS})
+INSTALL(TARGETS VTKViewer DESTINATION ${GUI_salomelib_LIBS})
+
+#ADD_EXECUTABLE(TestVTKViewer VTKViewer.cxx)
+#SET_TARGET_PROPERTIES(TestVTKViewer PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}"  OUTPUT_NAME "VTKViewer")
+#TARGET_LINK_LIBRARIES(TestVTKViewer VTKViewer ${COMMON_LIBS})
+#INSTALL(TARGETS TestVTKViewer DESTINATION ${GUI_salomebin_BINS})
+
+SET(COMMON_HEADERS_H 
+  VTKViewer.h
+  VTKViewer_CellLocationsArray.h
+  VTKViewer_Actor.h
+  VTKViewer_FramedTextActor.h
+  VTKViewer_ExtractUnstructuredGrid.h
+  VTKViewer_ConvexTool.h
+  VTKViewer_Filter.h
+  VTKViewer_GeometryFilter.h
+  VTKViewer_AppendFilter.h
+  VTKViewer_Algorithm.h
+  VTKViewer_InteractorStyle.h
+  VTKViewer_RenderWindow.h
+  VTKViewer_RenderWindowInteractor.h
+  VTKViewer_ShrinkFilter.h
+  VTKViewer_TransformFilter.h
+  VTKViewer_Transform.h
+  VTKViewer_Trihedron.h
+  VTKViewer_Utilities.h
+  VTKViewer_ViewManager.h
+  VTKViewer_ViewModel.h
+  VTKViewer_ViewWindow.h
+  VTKViewer_Functor.h
+  VTKViewer_ArcBuilder.h
+  VTKViewer_MarkerDef.h
+  VTKViewer_MarkerUtils.h
+  VTKViewer_MarkerWidget.h
+  VTKViewer_MarkerDlg.h
+  VTKViewer_PolyDataMapper.h
+  VTKViewer_DataSetMapper.h
+  VTKViewer_Texture.h
+  VTKViewer_OpenGLRenderer.h
+  VTKViewer_CellCenters.h
+)
+
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+
+FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
+INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
diff --git a/src/ViewerTools/CMakeLists.txt b/src/ViewerTools/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..538c953
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+
+INCLUDE_DIRECTORIES(
+  ${QT_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
+)
+SET(GUI_HEADERS ViewerTools_CubeAxesDlgBase.h ViewerTools_DialogBase.h ViewerTools_FontWidgetBase.h)
+QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
+SET(ViewerTools_SOURCES
+  ViewerTools_CubeAxesDlgBase.cxx
+  ViewerTools_DialogBase.cxx
+  ViewerTools_FontWidgetBase.cxx
+)
+
+SET(GUITS_SOURCES
+  resources/ViewerTools_msg_en.ts
+  resources/ViewerTools_msg_fr.ts
+)
+
+ADD_LIBRARY(ViewerTools SHARED ${ViewerTools_SOURCES} ${GUI_HEADERS_MOC})
+SET_TARGET_PROPERTIES(ViewerTools PROPERTIES COMPILE_FLAGS "${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(ViewerTools qtx ${QT_MT_LIBS})
+INSTALL(TARGETS ViewerTools DESTINATION ${GUI_salomelib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..48a7c85
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+SET(SUBDIRS
+  vtkEDFOverloads
+  dlgfactory
+)
+FOREACH(dir ${SUBDIRS})
+  ADD_SUBDIRECTORY(${dir})
+ENDFOREACH(dir ${SUBDIRS})
+            
diff --git a/tools/vtkEDFOverloads/CMakeLists.txt b/tools/vtkEDFOverloads/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..43a3ca9
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+INCLUDE_DIRECTORIES(
+  ${VTK_INCLUDE_DIRS}
+)
+
+ADD_LIBRARY(vtkTools SHARED vtkEDFCutter.cxx)
+SET_TARGET_PROPERTIES(vtkTools PROPERTIES COMPILE_FLAGS "${VTK_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(vtkTools ${VTK_LIBS})
+INSTALL(TARGETS vtkTools DESTINATION ${GUI_salomelib_LIBS})
+
+ADD_LIBRARY(vtkEDFOverloads SHARED vtkEDFFactory.cxx)
+SET_TARGET_PROPERTIES(vtkEDFOverloads PROPERTIES COMPILE_FLAGS "${VTK_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(vtkEDFOverloads ${VTK_LIBS} vtkTools)
+INSTALL(TARGETS vtkEDFOverloads DESTINATION ${GUI_paraviewlib_LIBS})
+
+FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})