]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
CMake improvement: usage of SALOME_GUI_MODE() macro
authormpa <mpa@opencascade.com>
Mon, 15 Jun 2015 08:01:22 +0000 (11:01 +0300)
committermpa <mpa@opencascade.com>
Mon, 15 Jun 2015 08:01:22 +0000 (11:01 +0300)
src/AppQuickStart/app-template/CMakeLists.txt

index c11854056de67e9b4629e22b55652a8d94b27df4..cb14d25bdcec7c18e515519fa028b19845671f4e 100644 (file)
@@ -69,7 +69,12 @@ SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI")
 IF(EXISTS ${GUI_ROOT_DIR})
   LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
   FIND_PACKAGE(SalomeGUI REQUIRED)
-  FULL_GUI(TRUE) # check whether GUI builded in full mode and with CORBA
+  SALOME_GUI_WITH_CORBA() #remove this line if you don't need GUI module builded with CORBA
+  #remove unnecessary options from this list (see SALOME_GUI_MODE() macro description)
+  SALOME_GUI_MODE(SALOME_USE_SALOMEOBJECT SALOME_USE_OCCVIEWER SALOME_USE_VTKVIEWER SALOME_USE_PYCONSOLE
+                  OPTIONAL SALOME_USE_PLOT2DVIEWER SALOME_USE_GLVIEWER SALOME_USE_GRAPHICSVIEW 
+                  SALOME_USE_QXGRAPHVIEWER SALOME_USE_PVVIEWER SALOME_USE_PYVIEWER
+                  )
   ADD_DEFINITIONS(${GUI_DEFINITIONS})
   INCLUDE_DIRECTORIES(${GUI_INCLUDE_DIRS})
 ELSE(EXISTS ${GUI_ROOT_DIR})