-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 13 additions & 12 deletions
25
.../YarpPlugins/ArucoDetector/CMakeLists.txt → ...pPlugins/ArucoCodeDetector/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
if(NOT DEFINED ENABLE_ArucoDetector OR ENABLE_ArucoDetector) | ||
if(NOT DEFINED ENABLE_ArucoCodeDetector OR ENABLE_ArucoCodeDetector) | ||
if(NOT TARGET opencv_objdetect) | ||
message(WARNING "OpenCV objdetect module not found, disabling ArucoDetector device") | ||
message(WARNING "OpenCV objdetect module not found, disabling ArucoCodeDetector device") | ||
elseif(NOT YARP_cv_FOUND) | ||
message(WARNING "YARP_cv package not found, disabling ArucoDetector device") | ||
message(WARNING "YARP_cv package not found, disabling ArucoCodeDetector device") | ||
endif() | ||
endif() | ||
|
||
yarp_prepare_plugin(ArucoDetector | ||
yarp_prepare_plugin(ArucoCodeDetector | ||
CATEGORY device | ||
TYPE roboticslab::ArucoDetector | ||
INCLUDE ArucoDetector.hpp | ||
TYPE roboticslab::ArucoCodeDetector | ||
INCLUDE ArucoCodeDetector.hpp | ||
DEFAULT ON | ||
DEPENDS "TARGET opencv_objdetect;YARP_cv_FOUND") | ||
|
||
if(NOT SKIP_ArucoDetector) | ||
if(NOT SKIP_ArucoCodeDetector) | ||
|
||
yarp_add_plugin(ArucoDetector ArucoDetector.hpp | ||
ArucoDetector.cpp) | ||
yarp_add_plugin(ArucoCodeDetector ArucoCodeDetector.hpp | ||
ArucoCodeDetector.cpp) | ||
|
||
target_link_libraries(ArucoDetector YARP::YARP_os | ||
target_link_libraries(ArucoCodeDetector YARP::YARP_os | ||
YARP::YARP_dev | ||
YARP::YARP_cv | ||
opencv_objdetect | ||
ROBOTICSLAB::VisionInterfaces) | ||
|
||
yarp_install(TARGETS ArucoDetector | ||
yarp_install(TARGETS ArucoCodeDetector | ||
LIBRARY DESTINATION ${ROBOTICSLAB-VISION_DYNAMIC_PLUGINS_INSTALL_DIR} | ||
ARCHIVE DESTINATION ${ROBOTICSLAB-VISION_STATIC_PLUGINS_INSTALL_DIR} | ||
YARP_INI DESTINATION ${ROBOTICSLAB-VISION_PLUGIN_MANIFESTS_INSTALL_DIR}) | ||
|
||
else() | ||
|
||
set(ENABLE_ArucoDetector OFF CACHE BOOL "Enable/disable ArucoDetector device" FORCE) | ||
set(ENABLE_ArucoCodeDetector OFF CACHE BOOL "Enable/disable ArucoCodeDetector device" FORCE) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters