function(add_test_suite name) | function(add_test_suite name) | ||||
add_executable(${name} ${name}.cpp) | add_executable(${name} ${name}.cpp) | ||||
target_link_libraries(${name} TestMain ScopeGuard) | target_link_libraries(${name} TestMain ScopeGuard) | ||||
add_test(NAME ${name} COMMAND ${name}) | |||||
add_test(${name} ${name}) | |||||
endfunction() | endfunction() | ||||