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

Revision history [back]

Your CMakeList should look something like this:

rosbuild_add_library(myClass_lib src/myClass.cpp)

rosbuild_add_gtest(myTest test/myTest.cpp)

target_link_libraries(myTest myClass_lib)