]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Add an option to build GUI with or without SALOMEDS observers
authorvsr <vsr@opencascade.com>
Mon, 16 Dec 2013 13:30:07 +0000 (13:30 +0000)
committervsr <vsr@opencascade.com>
Mon, 16 Dec 2013 13:30:07 +0000 (13:30 +0000)
CMakeLists.txt

index fe96c27e17f3785e6026a4323cb1bbda2bcbf8a4..d31a2792e5fe89e7e41871acab684ce2e2f7c685 100755 (executable)
@@ -59,6 +59,7 @@ LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
 # ============
 OPTION(SALOME_BUILD_DOC "Generate SALOME GUI documentation" ON)
 OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
+OPTION(SALOME_GUI_USE_OBSERVERS "Use study observers in GUI (advanced)" ON)
 
 # Advanced options:
 OPTION(SALOME_USE_VTKVIEWER "Enable VTK visualization (Mandatory in classic configurations)" ON)
@@ -88,7 +89,6 @@ MARK_AS_ADVANCED(SALOME_USE_PYCONSOLE SALOME_USE_QXGRAPHVIEWER)
 FIND_PACKAGE(SalomePython REQUIRED)
 FIND_PACKAGE(SalomePThread REQUIRED)
 FIND_PACKAGE(SalomeSWIG REQUIRED)
-#FIND_PACKAGE(SalomeLibXml2 REQUIRED)
 FIND_PACKAGE(SalomeBoost REQUIRED)
 FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
 
@@ -118,7 +118,9 @@ ENDIF()
 FIND_PACKAGE(SalomeSIP REQUIRED)  # should come after Python and before PyQt4
 
 # Build with GUI observers feature
-ADD_DEFINITIONS(-DWITH_SALOMEDS_OBSERVER)
+IF(SALOME_GUI_USE_OBSERVERS)
+  ADD_DEFINITIONS(-DWITH_SALOMEDS_OBSERVER)
+ENDIF()
 
 # OCCT
 FIND_PACKAGE(SalomeCAS REQUIRED)