CMake - Linking external C++ library
Hello,
I have an external .cpp library that requires both the following libraries: atlas
, llpack
and lblas
Now if for example, I compile using terminal (on the same machine) I can use the following:
g++ main.cpp hmm.cpp -I /usr/include/atlas -L /usr/lib64/atlas/ -llapack -lblas
This will work. I don't know how to include these libraries into the CMake list in ROS. I have, currently, the following:
rosbuild_add_executable(build1 src/hmm.c)
What would I have to add into my CMake list to make this work?
Thanks