Make object unclickable?

I try to code a game where you see an target object (wire view) and you have to build/change an source object to fit the target. The best is if i have both objects source/target at the same coordinates but for that the target object should not be clickable.

Is there a way to do so?