Only check property if GMOCK_LIBRARY is a target
Merge pull request #4 from smspillaz/cpp-subprocess-cmake.item_3

Only check property if GMOCK_LIBRARY is a target