mirror of
https://github.com/guezoloic/t3dsr.git
synced 2026-01-25 07:34:23 +00:00
feat(tests_vec3f): add vec3 tests
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user