Skip to content

Commit a654dcb

Browse files
committed
fix tests
1 parent c2a4238 commit a654dcb

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/lint_greet.yml

Whitespace-only changes.

test/CMakeLists.txt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
project(tests LANGUAGES CXX)
22

3+
# FETCH CONTENT ---------------------------------
4+
include(FetchContent)
5+
set(FETCHCONTENT_TRY_FIND_PACKAGE TRUE)
6+
7+
FetchContent_Declare(
8+
googletest
9+
GIT_REPOSITORY https://github.com/google/googletest.git
10+
GIT_TAG v1.14.0
11+
GIT_SHALLOW TRUE
12+
FIND_PACKAGE_ARGS CONFIG
13+
)
14+
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
15+
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
16+
FetchContent_MakeAvailable(googletest)
17+
318
# EXECUTABLES ---------------------------------
19+
enable_testing()
20+
421
add_executable(playground playground.cpp)
522
target_link_libraries(playground
623
PRIVATE pytokenizer
7-
)
24+
)
25+
26+
include(GoogleTest)
27+
# gtest_discover_tests(_tests PROPERTIES LABELS "library_tests")

0 commit comments

Comments
 (0)