Add dependencies as target-level dependencies.

Its not every case in which we will be building an external project.
Merge pull request #8 from smspillaz/cpp-subprocess-cmake.item_7

Add dependencies as target-level dependencies.