We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2a4238 commit a654dcbCopy full SHA for a654dcb
2 files changed
.github/workflows/lint_greet.yml
test/CMakeLists.txt
@@ -1,7 +1,27 @@
1
project(tests LANGUAGES CXX)
2
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
18
# EXECUTABLES ---------------------------------
19
+enable_testing()
20
21
add_executable(playground playground.cpp)
22
target_link_libraries(playground
23
PRIVATE pytokenizer
-)
24
25
26
+include(GoogleTest)
27
+# gtest_discover_tests(_tests PROPERTIES LABELS "library_tests")
0 commit comments