ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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)