feat(tests_vec3f): add vec3 tests

This commit is contained in:
2025-07-02 12:43:42 +02:00
parent a77d9bf585
commit 8b14924da3
7 changed files with 327 additions and 321 deletions

View File

@@ -18,10 +18,8 @@ enable_testing()
file(GLOB_RECURSE TEST_SOURCES CONFIGURE_DEPENDS tests/*.c)
list(FILTER SOURCES EXCLUDE REGEX ".*src/main\\.c$")
if(TEST_SOURCES)
add_executable(tests ${TEST_SOURCES} ${SOURCES})
if(NOT MSVC)
target_link_libraries(tests m)
endif()
add_test(NAME tests COMMAND tests)
endif()
foreach(test_src ${TEST_SOURCES})
get_filename_component(test_name ${test_src} NAME_WE)
add_executable(${test_name} ${test_src} ${SOURCES})
add_test(NAME ${test_name} COMMAND ${test_name})
endforeach()