Enable Shape Recognition menu item if OpenCV is available
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()
${CAS_DEFINITIONS}
${OMNIORB_DEFINITIONS}
${QT_DEFINITIONS}
+ ${OPENCV_DEFINITIONS}
)
# libraries to link to
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 ---
${CAS_DEFINITIONS}
${OMNIORB_DEFINITIONS}
${QT_DEFINITIONS}
+ ${OPENCV_DEFINITIONS}
)
# libraries to link to