Commit 70042ef0 authored by Emmanuel Battesti's avatar Emmanuel Battesti
Browse files

bug : include and link against opencv

parent da826522
...@@ -13,6 +13,9 @@ find_package(catkin REQUIRED COMPONENTS ...@@ -13,6 +13,9 @@ find_package(catkin REQUIRED COMPONENTS
std_msgs std_msgs
) )
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
## System dependencies are found with CMake's conventions ## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system) # find_package(Boost REQUIRED COMPONENTS system)
...@@ -141,6 +144,7 @@ add_executable(cam_invert_node src/cam_invert_node.cpp) ...@@ -141,6 +144,7 @@ add_executable(cam_invert_node src/cam_invert_node.cpp)
## Specify libraries to link a library or executable target against ## Specify libraries to link a library or executable target against
target_link_libraries(cam_invert_node target_link_libraries(cam_invert_node
${catkin_LIBRARIES} ${catkin_LIBRARIES}
${OpenCV_LIBS}
) )
## Declare a C++ executable ## Declare a C++ executable
...@@ -153,6 +157,7 @@ add_executable(feature_detection_node src/feature_detection_node.cpp) ...@@ -153,6 +157,7 @@ add_executable(feature_detection_node src/feature_detection_node.cpp)
## Specify libraries to link a library or executable target against ## Specify libraries to link a library or executable target against
target_link_libraries(feature_detection_node target_link_libraries(feature_detection_node
${catkin_LIBRARIES} ${catkin_LIBRARIES}
${OpenCV_LIBS}
) )
## Declare a C++ executable ## Declare a C++ executable
...@@ -165,6 +170,7 @@ add_executable(cam_sift_cpp_node src/cam_sift_cpp_node.cpp) ...@@ -165,6 +170,7 @@ add_executable(cam_sift_cpp_node src/cam_sift_cpp_node.cpp)
## Specify libraries to link a library or executable target against ## Specify libraries to link a library or executable target against
target_link_libraries(cam_sift_cpp_node target_link_libraries(cam_sift_cpp_node
${catkin_LIBRARIES} ${catkin_LIBRARIES}
${OpenCV_LIBS}
) )
############# #############
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment