Revision history [back]

List the libraries you want to link in the target_link_libraries section of your CMakeLists.txt.

List the libraries you want to link in the target_link_libraries section of your CMakeLists.txt.

Edit:

Here's a little example:

set(LIB_DIR ${PROJECT_SOURCE_DIR}/lib) set(MY_LIBS${LIB_DIR}/libMINTERFACE.so.0)

${catkin_LIBRARIES}${MY_LIBS}
)


List the libraries you want to link in the target_link_libraries section of your CMakeLists.txt.

Edit:

Here's a little example:

set(LIB_DIR ${PROJECT_SOURCE_DIR}/lib) set(MY_LIBS${LIB_DIR}/libMINTERFACE.so.0)

${catkin_LIBRARIES}${MY_LIBS}
)


This assumes that your libs are located in a directory called 'lib' inside your package.

List the libraries you want to link in the target_link_libraries section of your CMakeLists.txt.

Edit:

Here's a little example:

set(LIB_DIR ${PROJECT_SOURCE_DIR}/lib) set(MY_LIBS${LIB_DIR}/libMINTERFACE.so.0)

${catkin_LIBRARIES}${MY_LIBS}
)


This assumes that your libs are located in a directory called 'lib' inside your package.

Edit2:

This answer does not solve this question. After providing more information it revealed that the questioner uses rosbuild.

List the libraries you want to link in the target_link_libraries section of your CMakeLists.txt.

Edit:

Here's a little example:The auto generated CMakeLists.txt states the solution.

Look at this example line in your CMakeLists.txt

set(LIB_DIR ${PROJECT_SOURCE_DIR}/lib) set(MY_LIBS${LIB_DIR}/libMINTERFACE.so.0)

${catkin_LIBRARIES}${MY_LIBS}