From d24cf9de29ca086a67b32dbba1ace54e86a77d63 Mon Sep 17 00:00:00 2001 From: sfalexrog Date: Wed, 23 Jan 2019 15:29:46 +0300 Subject: [PATCH] aruco_pose: Use find_package instead of hardcoded opencv paths --- aruco_pose/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aruco_pose/CMakeLists.txt b/aruco_pose/CMakeLists.txt index 90403cf5..7ac1ece6 100644 --- a/aruco_pose/CMakeLists.txt +++ b/aruco_pose/CMakeLists.txt @@ -21,6 +21,8 @@ find_package(catkin REQUIRED COMPONENTS #aruco_msgs ) +find_package(OpenCV 3 REQUIRED) + ## System dependencies are found with CMake's conventions # find_package(Boost REQUIRED COMPONENTS system) @@ -158,7 +160,7 @@ link_directories(/opt/ros/kinetic/lib) target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} - "/opt/ros/kinetic/lib/libopencv_aruco3.so" # TODO: fix launch fails with .so loading + ${OpenCV_LIBRARIES} ) #############