Parse error. Expected a newline, got identifier with text “target_link_libraries“.
错误:Parse error. Expected a newline, got identifier with text “target_link_libraries”.这个是默认格式和输入的格式分隔符不同造成的,在两个代码中间隔一行即可。eg:add_executable(velocity_publisher src/velocity_publisher.cpp) target_link_libraries(velocity_publisher ${catkin_LIBRARIES})