ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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
2 | No.2 Revision |
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