ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Hi Daniel,

You could try adding the following lines to your CMakeLists.txt:

include_directories(/path-to-the-include-dir-with-cl.h)
rosbuild_add_executable(main path-to-main-cpp/main.cpp)
target_link_libraries(main /path-to-the-lib-folder-with-OpenCL-libfile/libOpenCL.so)

For more details you can find the documentation of CMake here. I hope this could help you.

Martin.