mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 09:20:35 +05:00
Detection of the OpenCV is OFF by default.
This commit is contained in:
parent
868245ec86
commit
f51526667e
@ -65,7 +65,7 @@ OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ${SALOME_BUILD_TESTS})
|
||||
|
||||
# Advanced options:
|
||||
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
|
||||
OPTION(SALOME_GEOM_USE_OPENCV "Enable shape recognition from picture" ON)
|
||||
OPTION(SALOME_GEOM_USE_OPENCV "Enable shape recognition from picture" OFF)
|
||||
|
||||
MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_GEOM_USE_OPENCV)
|
||||
|
||||
@ -148,8 +148,10 @@ FIND_PACKAGE(SalomeCAS REQUIRED)
|
||||
|
||||
IF(SALOME_BUILD_GUI)
|
||||
# OpenCV
|
||||
FIND_PACKAGE(SalomeOpenCV)
|
||||
SALOME_LOG_OPTIONAL_PACKAGE(OpenCV SALOME_GEOM_USE_OPENCV)
|
||||
IF(SALOME_GEOM_USE_OPENCV)
|
||||
FIND_PACKAGE(SalomeOpenCV)
|
||||
SALOME_LOG_OPTIONAL_PACKAGE(OpenCV SALOME_GEOM_USE_OPENCV)
|
||||
ENDIF(SALOME_GEOM_USE_OPENCV)
|
||||
ELSE()
|
||||
SET(SALOME_GEOM_USE_OPENCV OFF)
|
||||
ENDIF(SALOME_BUILD_GUI)
|
||||
|
Loading…
Reference in New Issue
Block a user