From: mpa Date: Thu, 11 Jun 2015 11:48:50 +0000 (+0300) Subject: CMake improvement: usage of SALOME_GUI_MODE() macro X-Git-Tag: V7_7_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a28e6748a98f3a410ebc6c34a518197fd66ff855;p=modules%2Fhomard.git CMake improvement: usage of SALOME_GUI_MODE() macro --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3738be5d..b806c061 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,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}) diff --git a/src/HOMARDGUI/HOMARDGUI.cxx b/src/HOMARDGUI/HOMARDGUI.cxx index a0c2945a..d7595169 100644 --- a/src/HOMARDGUI/HOMARDGUI.cxx +++ b/src/HOMARDGUI/HOMARDGUI.cxx @@ -704,7 +704,9 @@ void HOMARDGUI::windows( QMap& theMap ) const { theMap.clear(); theMap.insert( SalomeApp_Application::WT_ObjectBrowser, Qt::LeftDockWidgetArea ); +#ifndef DISABLE_PYCONSOLE theMap.insert( SalomeApp_Application::WT_PyConsole, Qt::BottomDockWidgetArea ); +#endif } //=============================================================================