From ca3114ad351bb3299fd7ccf3b0232dcb82f10e47 Mon Sep 17 00:00:00 2001 From: inv Date: Thu, 31 Oct 2013 07:58:25 +0000 Subject: [PATCH] Fix compilation problem with -DSALOME_BUILD_GUI=OFF mode. --- src/CMakeLists.txt | 4 ++-- src/CurveCreator/CMakeLists.txt | 4 +++- src/CurveCreator/CurveCreator_Curve.hxx | 2 -- src/CurveCreator/CurveCreator_ICurve.hxx | 2 -- src/CurveCreator/CurveCreator_Operation.cxx | 1 + 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1e808f43c..ddce7c14f 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -24,7 +24,7 @@ SET(SUBDIRS_COMMON ARCHIMEDE BlockFix GEOMAlgo SKETCHER GEOM BREPExport BREPImport IGESExport IGESImport STEPExport STEPImport STLExport ShHealOper GEOMUtils XAO XAO_Swig GEOMImpl GEOM_I GEOMClient GEOM_I_Superv GEOM_SWIG GEOM_PY - AdvancedEngine OCC2VTK VTKExport + AdvancedEngine OCC2VTK VTKExport CurveCreator ) ## @@ -45,7 +45,7 @@ IF(SALOME_BUILD_GUI) GEOMBase GEOMToolsGUI DisplayGUI BasicGUI PrimitiveGUI GenerationGUI EntityGUI BuildGUI BooleanGUI TransformationGUI OperationGUI RepairGUI MeasureGUI GroupGUI BlocksGUI AdvancedGUI ImportExportGUI - CurveCreator GEOM_SWIG_WITHIHM + GEOM_SWIG_WITHIHM ) ENDIF() diff --git a/src/CurveCreator/CMakeLists.txt b/src/CurveCreator/CMakeLists.txt index d11021f4d..35aef854a 100644 --- a/src/CurveCreator/CMakeLists.txt +++ b/src/CurveCreator/CMakeLists.txt @@ -17,7 +17,9 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -INCLUDE(${QT_USE_FILE}) +IF(SALOME_BUILD_GUI) + INCLUDE(${QT_USE_FILE}) +ENDIF(SALOME_BUILD_GUI) # --- options --- diff --git a/src/CurveCreator/CurveCreator_Curve.hxx b/src/CurveCreator/CurveCreator_Curve.hxx index 36eeab826..2cf48c2ec 100644 --- a/src/CurveCreator/CurveCreator_Curve.hxx +++ b/src/CurveCreator/CurveCreator_Curve.hxx @@ -28,8 +28,6 @@ #include "CurveCreator_Macro.hxx" #include "CurveCreator_Operation.hxx" -#include - class CurveCreator_Section; class CurveCreator_Listener; diff --git a/src/CurveCreator/CurveCreator_ICurve.hxx b/src/CurveCreator/CurveCreator_ICurve.hxx index 7d0cac83b..f85258d57 100644 --- a/src/CurveCreator/CurveCreator_ICurve.hxx +++ b/src/CurveCreator/CurveCreator_ICurve.hxx @@ -27,8 +27,6 @@ #include "CurveCreator_Macro.hxx" #include "CurveCreator_Operation.hxx" -#include - class CurveCreator_Section; class CurveCreator_Listener; diff --git a/src/CurveCreator/CurveCreator_Operation.cxx b/src/CurveCreator/CurveCreator_Operation.cxx index 2019475d1..aac7c4741 100644 --- a/src/CurveCreator/CurveCreator_Operation.cxx +++ b/src/CurveCreator/CurveCreator_Operation.cxx @@ -25,6 +25,7 @@ #include #include +#include //======================================================================= // function: Constructor -- 2.39.2