From 81ccb7199262ab476407965c2f00b7028a9f34a7 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Wed, 24 Mar 2021 23:48:29 +0000 Subject: [PATCH] adds gtest --- .gitmodules | 3 +++ 3rd/gtest | 1 + CMakeLists.txt | 2 ++ 3 files changed, 6 insertions(+) create mode 160000 3rd/gtest diff --git a/.gitmodules b/.gitmodules index b547037a..c1432e00 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "test/pycparser"] path = test/pycparser url = https://github.com/eliben/pycparser.git +[submodule "3rd/gtest"] + path = 3rd/gtest + url = https://github.com/google/googletest.git diff --git a/3rd/gtest b/3rd/gtest new file mode 160000 index 00000000..1a8ecf18 --- /dev/null +++ b/3rd/gtest @@ -0,0 +1 @@ +Subproject commit 1a8ecf1813d022cc7914e04564b92decff6161fc diff --git a/CMakeLists.txt b/CMakeLists.txt index a405285f..9ca66e44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,8 @@ else() message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR}) endif() +add_subdirectory(3rd/gtest) + # Arch settings if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")