include_directories(
${catkin_INCLUDE_DIRS}
$ENV{WEBOTS_HOME}/include/controller/cpp
$ENV{WEBOTS_HOME}/include/controller/c
)
target_link_libraries(xxx
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
$ENV{WEBOTS_HOME}/lib/controller
)
记得在配置 /.bashrc
文件中的 WEBOTS_HOME
。
参考链接:
[1] Webots中CMake开发环境配置
[2] Using Your IDE