Skip to content

Commit 49de94c

Browse files
committed
Auto-sync: 2026-03-03 05:34
1 parent de293d4 commit 49de94c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/TestSolution.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ endfunction()
55

66
function(add_gtest TARGET)
77
add_psds_executable(${TARGET} ${ARGN})
8-
target_link_libraries(${TARGET} PRIVATE GTest::gtest GTest::gtest_main)
8+
target_link_libraries(${TARGET} PRIVATE GTest::gtest GTest::gmock GTest::gtest_main)
99
set_target_properties(${TARGET} PROPERTIES
1010
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_TASKS_DIR}
1111
)
@@ -14,7 +14,7 @@ endfunction()
1414
function(add_gtest_asan TARGET)
1515
add_psds_executable(${TARGET} ${ARGN})
1616
target_compile_options(${TARGET} PRIVATE -g -fsanitize=address,undefined)
17-
target_link_libraries(${TARGET} PRIVATE GTest::gtest GTest::gtest_main)
17+
target_link_libraries(${TARGET} PRIVATE GTest::gtest GTest::gmock GTest::gtest_main)
1818
target_link_options(${TARGET} PRIVATE -fsanitize=address,undefined)
1919
set_target_properties(${TARGET} PROPERTIES
2020
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_TASKS_DIR}

0 commit comments

Comments
 (0)