Skip to content

Commit

Permalink
[jsk_recognition_utils] add OpenCV to catkin_depends
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Feb 20, 2024
1 parent 6f2b856 commit 9004923
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 10 additions & 8 deletions jsk_recognition_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,12 @@ generate_dynamic_reconfigure_options(
cfg/PolygonArrayToPolygon.cfg
)

catkin_package(
INCLUDE_DIRS include
LIBRARIES jsk_recognition_utils
CATKIN_DEPENDS jsk_recognition_msgs pcl_ros visualization_msgs message_runtime
)

# Cythonize pyx files
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(UseCython)
add_subdirectory(python/${PROJECT_NAME})

find_package(OpenCV REQUIRED core imgproc)
find_package(OpenCV REQUIRED)
find_package(PCL REQUIRED)
find_package(PkgConfig)
pkg_check_modules(yaml_cpp yaml-cpp REQUIRED)
Expand All @@ -71,8 +65,16 @@ ENDIF()
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -z defs")
endif()

catkin_package(
INCLUDE_DIRS include ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS}
LIBRARIES jsk_recognition_utils
CATKIN_DEPENDS jsk_recognition_msgs pcl_ros visualization_msgs message_runtime
DEPENDS OpenCV PCL
)

include_directories(
include ${catkin_INCLUDE_DIRS}
include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}
)
link_libraries(${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_LIBRARIES} yaml-cpp)

Expand Down
2 changes: 2 additions & 0 deletions jsk_recognition_utils/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<build_depend>visualization_msgs</build_depend>
<build_depend>yaml-cpp</build_depend>
<build_depend>message_generation</build_depend>
<build_depend>libopencv-dev</build_depend>
<exec_depend>eigen_conversions</exec_depend>
<exec_depend>geometry_msgs</exec_depend>
<exec_depend>image_geometry</exec_depend>
Expand All @@ -58,6 +59,7 @@
<exec_depend>visualization_msgs</exec_depend>
<exec_depend>yaml-cpp</exec_depend>
<exec_depend>message_runtime</exec_depend>
<exec_depend>libopencv-dev</exec_depend>
<test_depend>jsk_tools</test_depend>
<export>
</export>
Expand Down

0 comments on commit 9004923

Please sign in to comment.