重构
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
project(test-container)
|
||||
|
||||
|
||||
add_executable(${PROJECT_NAME}-string test-lt-string.c)
|
||||
target_link_libraries(${PROJECT_NAME}-string latch)
|
||||
if(UNIX)
|
||||
add_test(${PROJECT_NAME}-string ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-string)
|
||||
elseif(WIN32)
|
||||
add_test(${PROJECT_NAME}-string ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-string.exe)
|
||||
endif()
|
||||
|
||||
add_executable(
|
||||
${PROJECT_NAME}_string
|
||||
test_sring.cpp
|
||||
)
|
||||
target_link_libraries(
|
||||
${PROJECT_NAME}_string
|
||||
latch
|
||||
gtest::gtest
|
||||
)
|
||||
gtest_discover_tests(${PROJECT_NAME}_string)
|
||||
Reference in New Issue
Block a user