]> SALOME platform Git repositories - samples/hello.git/commitdiff
Salome HOME
CMake improvement: usage of SALOME_GUI_MODE() macro cbr/crowdin_V7_7_BR V7_7_0a1 V7_7_0b1
authormpa <mpa@opencascade.com>
Thu, 11 Jun 2015 11:43:57 +0000 (14:43 +0300)
committermpa <mpa@opencascade.com>
Thu, 11 Jun 2015 11:43:57 +0000 (14:43 +0300)
CMakeLists.txt
src/HELLOGUI/HELLOGUI.cxx

index 9ea2d8e67c4ff048c57f835cacd2bd3fc2b03e2c..c38d82535e6d97891bfc98d612ba73bfbd0d479a 100755 (executable)
@@ -81,7 +81,8 @@ 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() # check whether GUI builded with CORBA
+  SALOME_GUI_MODE(OPTIONAL SALOME_USE_PYCONSOLE)
   ADD_DEFINITIONS(${GUI_DEFINITIONS})
   INCLUDE_DIRECTORIES(${GUI_INCLUDE_DIRS})
 ELSE(EXISTS ${GUI_ROOT_DIR})
index ee8e63b23573616f7ab42e9e3f12e7778175eaed..27a0e401fb09e422fa119efbf5cacd155805dfe1 100644 (file)
@@ -256,9 +256,11 @@ void HELLOGUI::windows( QMap<int, int>& theMap ) const
   // want Object browser, in the left area
   theMap.insert( SalomeApp_Application::WT_ObjectBrowser,
                 Qt::LeftDockWidgetArea );
+#ifndef DISABLE_PYCONSOLE
   // want Python console, in the bottom area
   theMap.insert( SalomeApp_Application::WT_PyConsole,
                 Qt::BottomDockWidgetArea );
+#endif
 }
 
 /*!