mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 01:10:36 +05:00
Build Curve Creator optionally (OFF by default)
This commit is contained in:
parent
e3107ca04b
commit
99f560d637
@ -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)
|
||||
|
@ -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}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user