diff options
author | Jeff McGlynn <jwmcglynn@google.com> | 2018-07-26 13:08:01 -0700 |
---|---|---|
committer | Jeff McGlynn <jwmcglynn@google.com> | 2018-07-26 13:17:11 -0700 |
commit | 6b50058889099e4287f683b97a86ca74607172c4 (patch) | |
tree | 85e0da60fc73da1a00d2f1af094a5508968a89dd /third_party/googletest/CMakeLists.txt | |
parent | 9281bf41acf975a739698999958b63cf8869855c (diff) |
Remove third_party/googletest and reference git repo instead
Use a Bazel git_repository rule to reference the git repository instead
of bundling the source.
Change-Id: I32a0970178cb87fbf0e381db2e2d51fcccab542f
Diffstat (limited to 'third_party/googletest/CMakeLists.txt')
-rw-r--r-- | third_party/googletest/CMakeLists.txt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/third_party/googletest/CMakeLists.txt b/third_party/googletest/CMakeLists.txt deleted file mode 100644 index f8a97fa..0000000 --- a/third_party/googletest/CMakeLists.txt +++ /dev/null @@ -1,33 +0,0 @@ -cmake_minimum_required(VERSION 2.6.4) - -if (POLICY CMP0048) - cmake_policy(SET CMP0048 NEW) -endif (POLICY CMP0048) - -project( googletest-distribution ) - -enable_testing() - -include(CMakeDependentOption) -if (CMAKE_VERSION VERSION_LESS 2.8.5) - set(CMAKE_INSTALL_BINDIR "bin" CACHE STRING "User executables (bin)") - set(CMAKE_INSTALL_LIBDIR "lib${LIB_SUFFIX}" CACHE STRING "Object code libraries (lib)") - set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE STRING "C header files (include)") - mark_as_advanced(CMAKE_INSTALL_BINDIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_INCLUDEDIR) -else() - include(GNUInstallDirs) -endif() - -option(BUILD_GTEST "Builds the googletest subproject" OFF) - -#Note that googlemock target already builds googletest -option(BUILD_GMOCK "Builds the googlemock subproject" ON) - -cmake_dependent_option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON "BUILD_GTEST OR BUILD_GMOCK" OFF) -cmake_dependent_option(INSTALL_GMOCK "Enable installation of googlemock. (Projects embedding googlemock may want to turn this OFF.)" ON "BUILD_GMOCK" OFF) - -if(BUILD_GMOCK) - add_subdirectory( googlemock ) -elseif(BUILD_GTEST) - add_subdirectory( googletest ) -endif() |