]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Build Curve Creator optionally (OFF by default)
authorvsr <vsr@opencascade.com>
Wed, 6 Nov 2013 07:36:08 +0000 (07:36 +0000)
committervsr <vsr@opencascade.com>
Wed, 6 Nov 2013 07:36:08 +0000 (07:36 +0000)
CMakeLists.txt
src/CMakeLists.txt

index 3d6966355ed123d625441c10f310adb4912d28cb..4fa376399219e2f27a210dbd2eb8d68f7a3c749f 100755 (executable)
@@ -70,11 +70,14 @@ OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
 OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
 CMAKE_DEPENDENT_OPTION(SALOME_GEOM_USE_OPENCV "Enable shape recognition from picture" OFF
                        "SALOME_BUILD_GUI" OFF)
-MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_GEOM_USE_OPENCV)
+CMAKE_DEPENDENT_OPTION(SALOME_GEOM_BUILD_CC "Enable curve creator (experimental)" OFF
+                       "SALOME_BUILD_GUI" OFF)
+MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_GEOM_USE_OPENCV SALOME_GEOM_BUILD_CC)
 
 # Debug options (!!! FOR DEVELOPERS ONLY !!! TO BE REMOVED LATER !!!)
 IF(CMAKE_BUILD_TYPE MATCHES "^Debug$")
-  OPTION(SALOME_GEOM_DEBUG_CC "Debug curve creator" OFF)
+  CMAKE_DEPENDENT_OPTION(SALOME_GEOM_DEBUG_CC "Debug curve creator" OFF
+                        "SALOME_GEOM_BUILD_CC" OFF)
   MARK_AS_ADVANCED(SALOME_GEOM_DEBUG_CC)
 
   IF(SALOME_GEOM_DEBUG_CC)
@@ -241,7 +244,7 @@ SET(_${PROJECT_NAME}_exposed_targets
   GEOMArchimede BREPExport BREPImport BlockFix GEOMbasic GEOMAlgo GEOMClient GEOMImpl
   GEOMUtils GEOMEngine GEOM_SupervEngine IGESExport IGESImport GEOMSketcher
   SalomeIDLGEOM STEPExport STEPImport STLExport ShHealOper XAO AdvancedEngine OCC2VTK
-  VTKExport CurveCreator
+  VTKExport
 )
 IF(SALOME_BUILD_GUI)
   LIST(APPEND _${PROJECT_NAME}_exposed_targets 
@@ -257,6 +260,12 @@ IF(SALOME_GEOM_USE_OPENCV)
     )
 ENDIF(SALOME_GEOM_USE_OPENCV)
 
+IF(SALOME_GEOM_BUILD_CC)
+  LIST(APPEND _${PROJECT_NAME}_exposed_targets 
+    CurveCreator
+    )
+ENDIF(SALOME_GEOM_BUILD_CC)
+
 # Add all targets to the build-tree export set
 EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
   FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake)
index ddce7c14f7f858b2d7567288d2e44c0c0de8f785..aaa52fd8eae4f900d4430a33ed482719367f439a 100755 (executable)
@@ -24,9 +24,18 @@ 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 CurveCreator
+  AdvancedEngine OCC2VTK VTKExport
   )
 
+##
+# Curve creator
+##
+IF(SALOME_GEOM_BUILD_CC)
+  SET(SUBDIRS_CC
+    CurveCreator
+    )
+ENDIF()
+
 ##
 # OPENCV
 ##
@@ -52,6 +61,7 @@ ENDIF()
 SET(SUBDIRS
   ${SUBDIRS_COMMON}
   ${SUBDIRS_OPENCV}
+  ${SUBDIRS_CC}
   ${SUBDIRS_GUI}
 )