diff options
author | Gil <mcg@google.com> | 2018-06-26 14:57:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 14:57:40 -0700 |
commit | d03050653ff84e624def93aa512ef35907f5792a (patch) | |
tree | cef0fb6ef7e28a3302e1578f83a8fd8d57099eba /Firestore/CMakeLists.txt | |
parent | ae7078ca2bdd362df43e5fdba0261c5c84c1b447 (diff) |
Install googletest (#1461)
Also add FindGMock to Find gmock after installation
Diffstat (limited to 'Firestore/CMakeLists.txt')
-rw-r--r-- | Firestore/CMakeLists.txt | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/Firestore/CMakeLists.txt b/Firestore/CMakeLists.txt index 8b6f9d5..1240a8d 100644 --- a/Firestore/CMakeLists.txt +++ b/Firestore/CMakeLists.txt @@ -77,23 +77,8 @@ set(FIREBASE_BINARY_DIR ${PROJECT_BINARY_DIR}/..) list(INSERT CMAKE_MODULE_PATH 0 ${FIREBASE_SOURCE_DIR}/cmake) include(utils) -# Include GoogleTest directly in the build. -set(gtest_dir ${FIREBASE_BINARY_DIR}/external/googletest) -add_subdirectory( - ${gtest_dir}/src/googletest - ${gtest_dir}/src/googletest-build - EXCLUDE_FROM_ALL -) - -# Set up aliases with the same names as available via FindGTest. -add_library( - GTest::GTest ALIAS gtest -) - -add_library( - GTest::Main ALIAS gtest_main -) - +find_package(GTest REQUIRED) +find_package(GMock REQUIRED) find_package(LevelDB REQUIRED) find_package(GRPC REQUIRED) find_package(Nanopb REQUIRED) |