Skip to content

Commit

Permalink
Find and link against boost for animate_* examples
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed Jul 25, 2014
1 parent 2572e53 commit f9847b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/plugins/animate_joints/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(Boost REQUIRED system)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

find_package(gazebo REQUIRED)
include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

add_library(animate_joints SHARED animate_joints.cc)
target_link_libraries(animate_joints ${GAZEBO_LIBRARIES})
target_link_libraries(animate_joints ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES})
6 changes: 5 additions & 1 deletion examples/plugins/animate_pose/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(Boost REQUIRED system)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

find_package(gazebo REQUIRED)
include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

add_library(animate_pose SHARED animate_pose.cc)
target_link_libraries(animate_pose ${GAZEBO_LIBRARIES})
target_link_libraries(animate_pose ${GAZEBO_LIBRARIES} ${Boost_LIBRARY_DIRS})

0 comments on commit f9847b0

Please sign in to comment.