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 dac0ead
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions jsk_recognition_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ 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)
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

0 comments on commit dac0ead

Please sign in to comment.