File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ if(NOT YARP_cv_FOUND AND (NOT DEFINED ENABLE_ColorRegionDetector OR ENABLE_Color
2
2
message (WARNING "YARP_cv package not found, disabling ColorRegionDetector device" )
3
3
endif ()
4
4
5
- cmake_dependent_option(ENABLE_ColorRegionDetector "Enable/disable ColorRegionDetector" ON
6
- "ENABLE_TravisLib;YARP_cv_FOUND" OFF )
7
-
8
5
yarp_prepare_plugin(ColorRegionDetector
9
6
CATEGORY device
10
7
TYPE roboticslab::ColorRegionDetector
11
8
INCLUDE ColorRegionDetector.hpp
12
- DEFAULT ON )
9
+ DEFAULT ON
10
+ DEPENDS "ENABLE_TravisLib;YARP_cv_FOUND" )
13
11
14
12
if (NOT SKIP_ColorRegionDetector)
15
13
Original file line number Diff line number Diff line change @@ -6,14 +6,12 @@ if(NOT DEFINED ENABLE_HaarDetector OR ENABLE_HaarDetector)
6
6
endif ()
7
7
endif ()
8
8
9
- cmake_dependent_option(ENABLE_HaarDetector "Enable/disable HaarDetector" ON
10
- "OpenCV_FOUND;YARP_cv_FOUND" OFF )
11
-
12
9
yarp_prepare_plugin(HaarDetector
13
10
CATEGORY device
14
11
TYPE roboticslab::HaarDetector
15
12
INCLUDE HaarDetector.hpp
16
- DEFAULT ON )
13
+ DEFAULT ON
14
+ DEPENDS "OpenCV_FOUND;YARP_cv_FOUND" )
17
15
18
16
if (NOT SKIP_HaarDetector)
19
17
Original file line number Diff line number Diff line change @@ -6,14 +6,12 @@ if(NOT DEFINED ENABLE_QRDetector OR ENABLE_QRDetector)
6
6
endif ()
7
7
endif ()
8
8
9
- cmake_dependent_option(QRDetector "Enable/disable QRDetector" ON
10
- "OpenCV_VERSION_MAJOR EQUAL 4;YARP_cv_FOUND" OFF )
11
-
12
9
yarp_prepare_plugin(QRDetector
13
10
CATEGORY device
14
11
TYPE roboticslab::QRDetector
15
12
INCLUDE QRDetector.hpp
16
- DEFAULT ON )
13
+ DEFAULT ON
14
+ DEPENDS "OpenCV_VERSION_MAJOR EQUAL 4;YARP_cv_FOUND" )
17
15
18
16
if (NOT SKIP_QRDetector)
19
17
You can’t perform that action at this time.
0 commit comments