Ask Your Question

# Revision history [back]

To add a boost libraries to be linked with your ros code you need to add two lines in CMakeList.txt file:

# initilaize boost directory search
rosbuild_add_boost_directories()

# add a given boost library to be linked with your taget
rosbuild_link_boost(your_target thread system signals)


In your particular case your second line should look like:

rosbuild_link_boost(detection_displayer signals)


just right after the line like:

rosbuild_add_executable(detection_displayer src/detection_displayer.cpp)


To add a boost libraries to be linked with your ros code you need to add two lines in CMakeList.txt file:

# initilaize boost directory search
rosbuild_add_boost_directories()

# add a given boost library to be linked with your taget
target
rosbuild_link_boost(your_target thread system signals)


In your particular case your second line should look like:

rosbuild_link_boost(detection_displayer signals)


just right after the line like:

rosbuild_add_executable(detection_displayer src/detection_displayer.cpp)