cmake: prevent duplicate targets in catkin workspaces

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>