From fefc227f3b6b489ebc2099a538af87bdea41d1ed Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 16 Dec 2013 13:30:07 +0000 Subject: [PATCH] Add an option to build GUI with or without SALOMEDS observers --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe96c27e1..d31a2792e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.39.2