File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 44[submodule "lib/args "]
55 path = lib/args
66 url = https://github.com/Taywee/args
7- [submodule "lib/gtest "]
8- path = lib/gtest
9- url = https://github.com/google/googletest
Original file line number Diff line number Diff line change @@ -38,6 +38,6 @@ if(NOT USE_SYSTEM_ARGS)
3838endif ()
3939
4040# Google Test framework
41- if (BUILD_TESTING AND NOT TARGET gtest)
42- add_subdirectory (gtest EXCLUDE_FROM_ALL )
41+ if (BUILD_TESTING AND NOT TARGET GTest:: gtest)
42+ find_package (GTest REQUIRED )
4343endif ()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ include(CTest)
44set (CMAKE_CXX_STANDARD 11)
55
66add_executable (test_zsutil test_zsutil.cpp)
7- target_link_libraries (test_zsutil PRIVATE libzsync2 gtest cpr)
7+ target_link_libraries (test_zsutil PRIVATE libzsync2 GTest:: gtest cpr)
88add_test (NAME test_zsutil COMMAND test_zsutil)
99
1010add_executable (test_zshash test_zshash.cpp)
11- target_link_libraries (test_zshash PRIVATE libzsync2 gtest cpr)
11+ target_link_libraries (test_zshash PRIVATE libzsync2 GTest:: gtest cpr)
1212add_test (NAME test_zshash COMMAND test_zshash)
You can’t perform that action at this time.
0 commit comments