Skip to content

Commit

Permalink
Explicitly find OpenCV package to link with libraries built in /usr/l…
Browse files Browse the repository at this point in the history
…ocal if OpenCV is built from source
  • Loading branch information
matlabbe committed Jun 18, 2015
1 parent 317f0ed commit fa06d30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -19,6 +19,8 @@ find_package(octomap_ros)
# find_package(Boost REQUIRED COMPONENTS system)
find_package(RTABMap 0.9.0 REQUIRED)

find_package(OpenCV REQUIRED)

#Qt stuff
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
INCLUDE(${QT_USE_FILE})
Expand Down Expand Up @@ -102,11 +104,13 @@ catkin_package(
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/include
${RTABMap_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)

# libraries
SET(Libraries
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${RTABMap_LIBRARIES}
)
Expand Down

0 comments on commit fa06d30

Please sign in to comment.