ros add third party library but compilation does not pass
I want to load third party library ,but compilation does not pass .How to solve it. my cmakefile.txt:
ink_directories(${catkin_LIB_DIRS} lib)
add_executable( testusbcan src/testusbcan.cpp)
target_link_libraries(testusbcan ${catkin_LIBRARIES} controlcan)
include_directories(/home/exbot/catkin_ws/src/beginner_tutorials/include/head )
TARGET_LINK_LIBRARIES(testusbcan -lcontrolcan)
terminal displayed:
CMakeFiles/testusbcan.dir/src/testusbcan.cpp.o: In function `main':
testusbcan.cpp:(.text+0x21): undefined reference to `VCI_OpenDevice(unsigned int, unsigned int, unsigned int)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/exbot/catkin_ws/devel/lib/beginner_tutorials/testusbcan] Error 1
make[1]: *** [beginner_tutorials/CMakeFiles/testusbcan.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j1 -l1" failed
exbot@ubuntu:~/catkin_ws$