Automatically run tests on ROS build farm for pure cmake project
I'm hosting some pure cmake projects ifopt and towr (not dependent on catkin) on the ROS build farm, for which I generate some unit test in my CMakeLists.txt similar to:
find_package(GTest)
add_executable(test my_test.cpp)
target_link_libraries(test ${GTEST_BOTH_LIBRARIES} pthread)
add_test(test test)
I can run these with make test
after a non-catkin build, this works fine.
How can I tell the ROS build farm (which seems to be internally calling catkin_make run_tests
) to run that gtest binary as well after building? (jenkins-log)
I don't want to catkinize my project, which would allow me to use catkin_add_gtest
. I want to keep allowing the cd build && cmake ..
pure cmake build for users that don't have catkin installed.
Any help would be greatly appreciated.