I am using Google Test Framework for running tests for my ROS package. I compile and link my test executable using
and run the tests by issuing command
It happens, though, that other executables in that package are linked as well. Since I am usually developing test first and then adapting the source to fit that test, it is very annoying to wait for a long time for linking targets that are not required for running the test.
I do not want to hack the build system (
view $(rospack find mk)/cmake.mk), this being inadequate and downright dangerous. Any ideas or option I have overlooked to build only the executable added with