Skip to content

Commit f3a3674

Browse files
committed
Add GTest
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 0691621 commit f3a3674

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "third-party/sentencepiece"]
22
path = third-party/sentencepiece
33
url = https://github.com/google/sentencepiece.git
4+
[submodule "third-party/googletest"]
5+
path = third-party/googletest
6+
url = https://github.com/google/googletest.git

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ target_link_libraries(tokenizers PUBLIC sentencepiece-static)
3838

3939
# Build test
4040
if(TOKENIZERS_BUILD_TEST)
41-
find_package(GTest REQUIRED)
41+
add_subdirectory(third-party/googletest)
4242
set(ENV{RESOURCES_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/test/resources)
4343
add_executable(sentencepiece_test test/test_sentencepiece.cpp)
4444
target_include_directories(

third-party/googletest

Submodule googletest added at b514bdc

0 commit comments

Comments
 (0)