Skip to content

Commit

Permalink
added WITH_ROS to linking octomap lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Hornung committed Jul 22, 2011
1 parent 69bf2f6 commit 52f22cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/octomap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ SET (octomap_SRCS

ADD_LIBRARY( octomap ${octomap_SRCS})

TARGET_LINK_LIBRARIES(
octomap octomath
)
# Link in ROS libs e.g. for logging output if needed:
if(WITH_ROS)
TARGET_LINK_LIBRARIES(octomap octomath ${${PROJECT_NAME}_LIBRARIES})
else(WITH_ROS)
TARGET_LINK_LIBRARIES(octomap octomath)
endif(WITH_ROS)


ADD_EXECUTABLE(graph2tree graph2tree.cpp)
Expand Down

0 comments on commit 52f22cd

Please sign in to comment.