only add gtest linker dep for test target