add support to run test_c and test_cpp targets as a CMake test

This commit is contained in:
Alfi Maulana
2023-01-22 12:47:03 +07:00
parent 03870ba3b0
commit c04ca4c05a
2 changed files with 6 additions and 9 deletions

View File

@@ -28,4 +28,5 @@ foreach(LANG ${LANGS})
$<$<BOOL:${CHECK_USING_CLANG}>:CHECK_USING_CLANG>
$<$<BOOL:${CHECK_SURPASS_WARNING}>:CHECK_SURPASS_WARNING>
)
add_test(NAME test_${LANG} CONFIGURATIONS test COMMAND $<TARGET_FILE:test_${LANG}>)
endforeach()