ysyx-workbench/abstract-machine/klib/tests/CMakeLists.txt

12 lines
373 B
CMake
Raw Normal View History

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)
target_link_libraries(${TEST} PRIVATE am_interface klib_interface klib m)
target_link_libraries(${TEST} PRIVATE am-native)
add_test(NAME ${TEST} COMMAND ${TEST})
endif()
2024-03-25 08:56:16 +00:00
endforeach()