提交leetcode 我对LeetCode OJ的提交( ) 设置 建立gtest。 $ export GTEST_VERSION=1.8.1 $ curl -OL https://github.com/google/googletest/archive/release- ${GTEST_VERSION} .tar.gz $ tar zxvf release- ${GTEST_VERSION} .tar.gz $ pushd googletest-release- ${GTEST_VERSION} /googletest $ mkdir mybuild $ cd mybuild $ cmake .. $ make $ popd $ mkdir -p gtest/lib $ cp -R googletest-release- ${GTEST_VERSION} /googletest/i