ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
link_directories( /usr/lib64/atlas )

equivalent to -L /usr/lib64/atlas of gcc/g++

And after :

rosbuild_add_executable(build1 src/hmm.c)

you put

target_link_libraries( build1 lapack blas )

equivalent to -llapack -llapack

Note: First arg of target_link_libraries is the previously defined target to link.

Note: no prepended -l in target_link_libraries, i e. if your external lib is named libmy_lib.so you just add my_lib to target_link_libraries

link_directories( /usr/lib64/atlas )

equivalent to -L /usr/lib64/atlas of gcc/g++

And after :

rosbuild_add_executable(build1 src/hmm.c)

you put

target_link_libraries( build1 lapack blas )

equivalent to -llapack -llapack-lblas

Note: First arg of target_link_libraries is the previously defined target to link.

Note: no prepended -l in target_link_libraries, i e. if your external lib is named libmy_lib.so you just add my_lib to target_link_libraries