Commit 70042ef0731b333c8f52fd8d9dfa0ac017b2e696

Authored by Emmanuel Battesti
1 parent da826522

bug : include and link against opencv

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
CMakeLists.txt
... ... @@ -13,6 +13,9 @@ find_package(catkin REQUIRED COMPONENTS
13 13 std_msgs
14 14 )
15 15  
  16 +find_package(OpenCV REQUIRED)
  17 +include_directories(${OpenCV_INCLUDE_DIRS})
  18 +
16 19 ## System dependencies are found with CMake's conventions
17 20 # find_package(Boost REQUIRED COMPONENTS system)
18 21  
... ... @@ -141,6 +144,7 @@ add_executable(cam_invert_node src/cam_invert_node.cpp)
141 144 ## Specify libraries to link a library or executable target against
142 145 target_link_libraries(cam_invert_node
143 146 ${catkin_LIBRARIES}
  147 + ${OpenCV_LIBS}
144 148 )
145 149  
146 150 ## Declare a C++ executable
... ... @@ -153,6 +157,7 @@ add_executable(feature_detection_node src/feature_detection_node.cpp)
153 157 ## Specify libraries to link a library or executable target against
154 158 target_link_libraries(feature_detection_node
155 159 ${catkin_LIBRARIES}
  160 + ${OpenCV_LIBS}
156 161 )
157 162  
158 163 ## Declare a C++ executable
... ... @@ -165,6 +170,7 @@ add_executable(cam_sift_cpp_node src/cam_sift_cpp_node.cpp)
165 170 ## Specify libraries to link a library or executable target against
166 171 target_link_libraries(cam_sift_cpp_node
167 172 ${catkin_LIBRARIES}
  173 + ${OpenCV_LIBS}
168 174 )
169 175  
170 176 #############
... ...