mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
CMake porting.
Enable Shape Recognition menu item if OpenCV is available
This commit is contained in:
parent
3ca6ffd9ba
commit
fcc908e69c
@ -153,6 +153,9 @@ IF(SALOME_BUILD_GUI)
|
||||
ELSE()
|
||||
SET(SALOME_GEOM_USE_OPENCV OFF)
|
||||
ENDIF(SALOME_BUILD_GUI)
|
||||
IF(SALOME_GEOM_USE_OPENCV)
|
||||
SET(OPENCV_DEFINITIONS "-DWITH_OPENCV")
|
||||
ENDIF()
|
||||
|
||||
# Detection summary:
|
||||
SALOME_PACKAGE_REPORT()
|
||||
|
@ -50,6 +50,7 @@ ADD_DEFINITIONS(
|
||||
${CAS_DEFINITIONS}
|
||||
${OMNIORB_DEFINITIONS}
|
||||
${QT_DEFINITIONS}
|
||||
${OPENCV_DEFINITIONS}
|
||||
)
|
||||
|
||||
# libraries to link to
|
||||
@ -67,6 +68,7 @@ SET(_link_LIBRARIES
|
||||
IF(SALOME_GEOM_USE_OPENCV)
|
||||
SET( FeatureDetectorDlg_Sources EntityGUI_FeatureDetectorDlg.cxx )
|
||||
SET( FeatureDetectorDlg_moc_h EntityGUI_FeatureDetectorDlg.h )
|
||||
LIST(APPEND _link_LIBRARIES GEOMShapeRec)
|
||||
ENDIF()
|
||||
|
||||
# --- resources ---
|
||||
|
@ -45,6 +45,7 @@ ADD_DEFINITIONS(
|
||||
${CAS_DEFINITIONS}
|
||||
${OMNIORB_DEFINITIONS}
|
||||
${QT_DEFINITIONS}
|
||||
${OPENCV_DEFINITIONS}
|
||||
)
|
||||
|
||||
# libraries to link to
|
||||
|
Loading…
Reference in New Issue
Block a user