File tree 1 file changed +8
-3
lines changed
programs/sceneReconstruction
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ include (CheckCXXSymbolExists)
2
+ set (CMAKE_REQUIRED_INCLUDES "${OpenCV_INCLUDE_DIRS} " )
3
+ set (CMAKE_REQUIRED_QUIET TRUE )
4
+ check_cxx_symbol_exists(OPENCV_ENABLE_NONFREE opencv2/opencv_modules.hpp _opencv_nonfree)
5
+
1
6
if (NOT DEFINED ENABLE_sceneReconstruction OR ENABLE_sceneReconstruction)
2
- if (NOT TARGET opencv_rgbd OR NOT OpenCV_VERSION VERSION_GREATER_EQUAL 4.0)
3
- message (WARNING "OpenCV 4.0+/rgbd module not found, disabling sceneReconstruction program" )
7
+ if (NOT TARGET opencv_rgbd OR NOT OpenCV_VERSION VERSION_GREATER_EQUAL 4.0 OR NOT _opencv_nonfree )
8
+ message (WARNING "OpenCV 4.0+/rgbd module with non-free algorithms not found, disabling sceneReconstruction program" )
4
9
elseif (NOT YARP_cv_FOUND)
5
10
message (WARNING "YARP_cv package not found, disabling sceneReconstruction program" )
6
11
endif ()
7
12
endif ()
8
13
9
14
cmake_dependent_option(ENABLE_sceneReconstruction "Enable/disable sceneReconstruction program" ON
10
- "TARGET opencv_rgbd;OpenCV_VERSION VERSION_GREATER_EQUAL 4.0;YARP_cv_FOUND" OFF )
15
+ "TARGET opencv_rgbd;OpenCV_VERSION VERSION_GREATER_EQUAL 4.0;_opencv_nonfree; YARP_cv_FOUND" OFF )
11
16
12
17
if (ENABLE_sceneReconstruction)
13
18
You can’t perform that action at this time.
0 commit comments