Only add a dependency on the target, not its project.

The former also made no sense. The target has to depend on the
project, so depending on the project was just arbitrary.
Merge pull request #7 from smspillaz/cpp-subprocess-cmake.item_6

Only add a dependency on the target, not its project.