This commit is contained in:
2025-03-25 17:08:39 +08:00
parent aabf07d9ec
commit 59f589894b
6 changed files with 190 additions and 26 deletions

View File

@@ -1,7 +1,5 @@
file(GLOB SRC_FILES "*.cpp")
add_executable(test_2711 test_2711.cpp)
target_link_libraries(test_2711 PUBLIC gtest_main solution_2711)
foreach(SRC_FILE ${SRC_FILES})
get_filename_component(EXE_NAME ${SRC_FILE} NAME_WE)
add_executable(${EXE_NAME} ${SRC_FILE})
target_link_libraries(${EXE_NAME} gtest gmock)
endforeach()
enable_testing()
add_test(NAME test_2711 COMMAND test_2711)