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

Revision history [back]

click to hide/show revision 1
initial version

The error message makes it clear that the issue is multiple targets of the same name are being created:

add_executable cannot create target "unit_environment" because another target with the same name already exists.

Maybe try changing the following command:

custom_gtest(unit_environment "tests/unit_environment.cpp" TIMEOUT 300)

to

custom_gtest(${targets} "tests/unit_environment.cpp" TIMEOUT 300)