add_executable(am-tests
    tests/audio/audio-data.S
    tests/audio.c
    tests/devscan.c
    tests/hello.c
    tests/intr.c
    tests/keyboard.c
    tests/mp.c
    tests/rtc.c
    tests/video.c
    tests/vm.c
    main.c
)
# set_propertygSOURCE tests/audio/audio-data.S APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tests/audio/little-star.pcm)

target_include_directories(am-tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_link_libraries(am-tests PRIVATE am-${ARCH} klib)

create_binary(am-tests)
install_target_and_binary(am-tests)