File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,3 @@ if(NOT USE_SYSTEM_ARGS)
7676
7777 import_args()
7878endif ()
79-
80- # Google Test framework
81- if (BUILD_TESTING AND NOT TARGET GTest::gtest)
82- find_package (GTest REQUIRED)
83- endif ()
Original file line number Diff line number Diff line change 11enable_testing ()
22include (CTest)
33
4- set (CMAKE_CXX_STANDARD 11)
4+ set (CMAKE_CXX_STANDARD 17)
5+
6+ find_package (GTest REQUIRED)
57
68add_executable (test_zsutil test_zsutil.cpp)
79target_link_libraries (test_zsutil PRIVATE libzsync2 GTest::gtest cpr)
8- add_test ( NAME test_zsutil COMMAND test_zsutil)
10+ gtest_discover_tests( test_zsutil)
911
1012add_executable (test_zshash test_zshash.cpp)
1113target_link_libraries (test_zshash PRIVATE libzsync2 GTest::gtest cpr)
12- add_test ( NAME test_zshash COMMAND test_zshash)
14+ gtest_discover_tests( test_zshash)
You can’t perform that action at this time.
0 commit comments