Skip to content

Commit

Permalink
Added OpenCV in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
mktk1117 committed Dec 7, 2023
1 parent 689b86f commit 46c9b44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elevation_mapping_cupy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ project(elevation_mapping_cupy)

find_package(PythonInterp 3 REQUIRED)
find_package(PythonLibs 3 REQUIRED)
find_package(OpenCV REQUIRED)

if(PYTHONLIBS_FOUND)
message(STATUS "Using Python Libraries at: " ${PYTHON_LIBRARIES})
Expand Down Expand Up @@ -54,13 +55,14 @@ include_directories(
${PYTHON_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)

add_library(elevation_mapping_ros
src/elevation_mapping_wrapper.cpp
src/elevation_mapping_ros.cpp)

target_link_libraries(elevation_mapping_ros ${PYTHON_LIBRARIES} ${catkin_LIBRARIES})
target_link_libraries(elevation_mapping_ros ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

add_executable(elevation_mapping_node src/elevation_mapping_node.cpp)
target_link_libraries(elevation_mapping_node elevation_mapping_ros)
Expand Down

0 comments on commit 46c9b44

Please sign in to comment.