2024-07-09 09:26:11 +00:00
|
|
|
set(TEST_SOURCES stdio string)
|
2024-03-25 08:56:16 +00:00
|
|
|
|
|
|
|
foreach(TEST IN LISTS TEST_SOURCES)
|
2024-07-09 09:26:11 +00:00
|
|
|
# TODO: Run tests in other configurations
|
|
|
|
if(__PLATFORM_NATIVE__)
|
|
|
|
add_executable(${TEST} ${TEST}.c)
|
2024-08-15 08:38:56 +00:00
|
|
|
target_link_libraries(${TEST} PRIVATE am_interface klib_interface klib)
|
2024-07-09 09:26:11 +00:00
|
|
|
target_link_libraries(${TEST} PRIVATE am-native)
|
|
|
|
add_test(NAME ${TEST} COMMAND ${TEST})
|
|
|
|
endif()
|
2024-03-25 08:56:16 +00:00
|
|
|
endforeach()
|